Skip to content

Commit

Permalink
Merge pull request #32 from bharatak/functional-test-issues
Browse files Browse the repository at this point in the history
Functional test build will be red if the tests fail
  • Loading branch information
SwathiVarkala authored May 11, 2018
2 parents 6f147d0 + f2bf2ed commit 4d88ba5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ echo "The env is $1 $2 - in run-docker.sh"
docker run -v /var/go/.m2:/root/.m2:rw -v $PWD:/gauge -e ENV=$1 -e TAGS=$2 -i bharatak/docker-gauge-chromedriver:chromedriver-2.34 -- sh run.sh
#Hack. The html-report executable is symlinked as a root user.
#so, removing it so that the artifact is accessible from gocd server
rc=$?
if [[ $rc != 0 ]]; then
rm -f bahmni-gauge-default/reports/html-report/html-report
echo "The build is failed"
exit $rc;
fi
rm -f bahmni-gauge-default/reports/html-report/html-report
echo "The build is successful"

0 comments on commit 4d88ba5

Please sign in to comment.