summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Miles <smiles@google.com>2017-10-13 16:56:28 -0700
committerStewart Miles <smiles@google.com>2017-10-13 17:35:57 -0700
commit0780a7db2463a1a4f30b01f2fac1c49e35641364 (patch)
tree776e067de2d9fc6fc599cb0eb91ba2898e4ef36d
parent9234ddcf114e1299b0a255e2ac05f1a74809f78d (diff)
downloadflatbuffers-0780a7db2463a1a4f30b01f2fac1c49e35641364.tar.gz
flatbuffers-0780a7db2463a1a4f30b01f2fac1c49e35641364.tar.bz2
flatbuffers-0780a7db2463a1a4f30b01f2fac1c49e35641364.zip
Report a build failure when any Android build fails.
The travis script was only failing if the last Android build fails. This changes the script to report a failure if any of the Android projects fail to build.
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 297c406b..71847f29 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -55,4 +55,4 @@ matrix:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi
script:
- - for build_gradle in $(git ls-files | grep build.gradle); do ( cd "$(dirname "${build_gradle}")" && ./gradlew build ); done
+ - failed=0; for build_gradle in $(git ls-files | grep build.gradle); do ( cd "$(dirname "${build_gradle}")" && ./gradlew build ) || failed=1; done; exit $((failed))