From 0780a7db2463a1a4f30b01f2fac1c49e35641364 Mon Sep 17 00:00:00 2001 From: Stewart Miles Date: Fri, 13 Oct 2017 16:56:28 -0700 Subject: 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. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3