Skip to content

Commit

Permalink
Set the travis CI build to continue even if some tasks failed
Browse files Browse the repository at this point in the history
The --continue argument makes gradle try and build every task whose dependencies finished successfully. This is in contrast to the "regular" behavior of stopping at the first failure.

This is useful because it will show us all the failed tests (from all test tasks) instead of just the first test task that failed.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=237792667
  • Loading branch information
guyben13 authored and CydeWeys committed Mar 20, 2019
1 parent 8e42768 commit ff0672f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -56,4 +56,4 @@ env:
# output, instead of the default 10.
# See notes on the CREDZ and REPORT_GCS_BUCKET environment variable in the
# comments at the top of the file.
script: cd gradle && echo "$CREDZ" >credz.json && chmod 755 ./gradlew && travis_wait 45 ./gradlew build -P gcsBucket="$REPORT_GCS_BUCKET" -P gcsCredentialsFile=credz.json -P gcsMultithreadedUpload=yes
script: cd gradle && echo "$CREDZ" >credz.json && chmod 755 ./gradlew && travis_wait 45 ./gradlew build --continue -P gcsBucket="$REPORT_GCS_BUCKET" -P gcsCredentialsFile=credz.json -P gcsMultithreadedUpload=yes

0 comments on commit ff0672f

Please sign in to comment.