Skip to content

Commit

Permalink
Updating build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
aweigold committed Jul 28, 2018
1 parent dbd7ce3 commit 1a87135
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit 1a87135

Please sign in to comment.