Skip to content

Commit

Permalink
tweaking if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch committed Sep 6, 2018
1 parent 83fbda8 commit 1e8f20d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ expfactoryrobots: &expfactoryrobots
docker exec expfactory-robot ls /data/${CIRCLE_PROJECT_REPONAME}
echo "3. running tests."
echo "docker exec -it expfactory-robot xvfb-run -a python3 /code/start.py /data/${CIRCLE_PROJECT_REPONAME}"
docker exec -it expfactory-robot xvfb-run -a python3 /code/start.py /data/${CIRCLE_PROJECT_REPONAME} && retval="$?" || retval="1"
if [ "${retval}" -neq 0 ]; then
docker exec -it expfactory-robot xvfb-run -a python3 /code/start.py /data/${CIRCLE_PROJECT_REPONAME} && retval=$? || retval=1
if [ "${retval}" != "0" ]; then
echo "Return value $retval is nonzero, check errors above."
exit $retval
else
Expand Down

0 comments on commit 1e8f20d

Please sign in to comment.