You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by lu...@apache.org on 2019/09/17 02:18:36 UTC

[incubator-weex] branch master updated: [Travis] Fail travis if Android build fails (#2911)

This is an automated email from the ASF dual-hosted git repository.

luckychen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 5de6b6b  [Travis] Fail travis if Android build fails (#2911)
5de6b6b is described below

commit 5de6b6b28cc86cf0474d91e2695fd3eacdeb84aa
Author: YorkShen <sh...@gmail.com>
AuthorDate: Tue Sep 17 10:18:28 2019 +0800

    [Travis] Fail travis if Android build fails (#2911)
---
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 6e2c6a2..d9f4191 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -137,8 +137,8 @@ script:
         esac
         if npm run danger -- ci --dangerfile ./dangerfile-android.js | grep -q "hasAndroidFile" ; then
           cd android
-          ./gradlew clean assembleRelease -PbuildRuntimeApi=true ${GRADLE_ABI} --info
-          ./gradlew assembleRelease -PbuildRuntimeApi=false ${GRADLE_ABI} --info
+          ./gradlew clean assembleRelease -PbuildRuntimeApi=true ${GRADLE_ABI} --info || exit 1
+          ./gradlew assembleRelease -PbuildRuntimeApi=false ${GRADLE_ABI} --info || exit 1
         fi
         ;;
       "jsfm" )