From 1a8713572660b6955990cdc4943a3d32d7847a83 Mon Sep 17 00:00:00 2001 From: "Adam J. Weigold" Date: Sat, 28 Jul 2018 18:14:27 -0500 Subject: [PATCH] Updating build script. --- .travis/build.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.travis/build.sh b/.travis/build.sh index 1821dbfd..76ccfa25 100755 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -3,7 +3,7 @@ set -e # Exit with nonzero exit code if anything fails SOURCE_BRANCH="master" -if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then +if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then ./gradlew build else ./gradlew build \ @@ -14,15 +14,13 @@ else -PnexusUsername=$sonatypeUsername \ -PnexusPassword=$sonatypePassword - if [ "$TRAVIS_BRANCH" == "$SOURCE_BRANCH" ]; then - ./gradlew sonarqube \ - -Penable.signing=true \ - -Psigning.keyId=D1115C87 \ - -Psigning.password=$signingPassword \ - -Psigning.secretKeyRingFile="$TRAVIS_BUILD_DIR/signing.gpg" \ - -PnexusUsername=$sonatypeUsername \ - -PnexusPassword=$sonatypePassword - fi + ./gradlew sonarqube \ + -Penable.signing=true \ + -Psigning.keyId=D1115C87 \ + -Psigning.password=$signingPassword \ + -Psigning.secretKeyRingFile="$TRAVIS_BUILD_DIR/signing.gpg" \ + -PnexusUsername=$sonatypeUsername \ + -PnexusPassword=$sonatypePassword ./gradlew publish \ -Penable.signing=true \