Browse Source

Minor improvement for contracts test shell script

develop
Apostolos Fanakis 4 years ago
parent
commit
7905910358
  1. 9
      docker/concordia-contracts/test-contracts.sh

9
docker/concordia-contracts/test-contracts.sh

@ -5,13 +5,8 @@ yarn _eslint -f html -o /usr/test-reports/concordia-contracts-eslint.html --no-c
(yarn test >/usr/test-reports/concordia-contracts-truffle-tests.report) (yarn test >/usr/test-reports/concordia-contracts-truffle-tests.report)
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
# Tests ran successfully echo "TESTS RAN SUCCESSFULLY!"
if [ -n "${CI}" ]; then exit 0
# This is a ci run
# Create a pass file to alert the ci about test success
# mkdir /usr/test-results && touch /usr/test-results/pass
exit 0
fi
else else
echo "SOME TESTS FAILED!" echo "SOME TESTS FAILED!"
exit 1 exit 1

Loading…
Cancel
Save