[build.sh] Use pipenv run instead of shell 53/61353/8
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 24 Aug 2018 22:43:56 +0000 (00:43 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 24 Aug 2018 23:32:51 +0000 (01:32 +0200)
JIRA: FUEL-383

Change-Id: Ia1b58f9e7eefd9f3efc4b5241ec496c545ccee25
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
ci/build.sh

index 3c8a5e7..a51a135 100755 (executable)
@@ -70,16 +70,16 @@ pushd "${DOCKER_DIR}" > /dev/null
 
 pipenv --two
 pipenv install
-pipenv shell \
-  "invoke build saltmaster-reclass \
+pipenv install invoke
+pipenv run \
+  invoke build saltmaster-reclass \
     --require 'salt salt-formulas opnfv reclass tini-saltmaster' \
     --dist=ubuntu \
     --dist-rel=xenial \
     --formula-rev=nightly \
     --opnfv-tag='${DOCKER_TAG}' \
     --salt='stable 2017.7' \
-    ${DOCKER_PUSH}; \
-  exit"
+    ${DOCKER_PUSH}
 
 popd > /dev/null