diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-08-11 15:47:15 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-08-11 15:47:15 +0400 |
commit | 0033a328a9da2307be3493f6d5b47f77ef608c62 (patch) | |
tree | 4c5f3c8cd3352948304a7c0a25a3269ccce48f25 /tests | |
parent | 53374d9dc7afcaebb40013d237c68ec1a33a87c2 (diff) |
Make sure to fail build if generating a .travis.yml file fails in travis.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/travis/autoupdate_travis_yml.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/travis/autoupdate_travis_yml.sh b/tests/travis/autoupdate_travis_yml.sh index ae5b504eeb..2d93948a97 100755 --- a/tests/travis/autoupdate_travis_yml.sh +++ b/tests/travis/autoupdate_travis_yml.sh @@ -3,7 +3,10 @@ # if we're on master, check if .travis.yml is out of date. if github token is supplied we will try to auto-update, # otherwise we just print a message and exit. GENERATE_TRAVIS_YML_COMMAND="$GENERATE_TRAVIS_YML_COMMAND --dump=./generated.travis.yml" -$GENERATE_TRAVIS_YML_COMMAND +if ! $GENERATE_TRAVIS_YML_COMMAND; then + echo "generate:travis-yml failed!" + exit 1 +fi diff .travis.yml generated.travis.yml > /dev/null DIFF_RESULT=$? |