From 1f4672264e942b036598b0ef88a7cf0d2aabf592 Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Thu, 25 Feb 2016 11:09:26 -0500 Subject: [PATCH] travis: upload archives for tagged builds --- .travis.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5f684cf51..3d8e67840 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,9 +55,6 @@ before_install: # export ANDROID_NDK=`pwd`/android-ndk-r10c after_success: - - '[ "$TRAVIS_BRANCH" == "master" ] && echo running on master' - - '[ "$TRAVIS_PULL_REQUEST" == "false" ] && echo not a PR' - - '[ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && echo master and not PR' - - '[ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && echo upload archives! || :' + - '[ "$TRAVIS_BRANCH" == "master" ] && echo the branch is $TRAVIS_BRANCH' - '[ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ./gradlew uploadArchives || :' - - '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ./gradlew bintrayUpload || :' + - '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ./gradlew uploadArchives bintrayUpload || :'