Skip to content
Permalink
Browse files

Make sure Travis fails if one of the called scripts fails

Add `set -e` and `set +e` as documented here:
travis-ci/travis-ci#1066 (comment)

Otherwise Travis will continue even if one of the called scripts exits with
1.
  • Loading branch information...
mnonnenmacher authored and sschuberth committed Oct 10, 2018
1 parent ce9c034 commit f252bfc3f08edaa074e7a964010d5db2d0ff58a9
Showing with 2 additions and 0 deletions.
  1. +2 −0 .travis.yml
@@ -43,8 +43,10 @@ install:
- yes | $ANDROID_HOME/tools/bin/sdkmanager --verbose "platform-tools"

script:
- set -e
- ./tools/check-copyright.sh
- ./tools/ktlint.sh
- set +e
- set -o pipefail
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
./gradlew --no-daemon -Dkotlintest.tags.exclude=ScanCodeTag --stacktrace check jacocoReport | tee log.txt;

0 comments on commit f252bfc

Please sign in to comment.
You can’t perform that action at this time.