Skip to content

Commit

Permalink
only build a snapshot release on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Graff committed Nov 16, 2017
1 parent 5f50cde commit 0e440d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/buildViaTravis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo ${bintrayUser}
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
./gradlew -Prelease.useLastTag=true build
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" build snapshot --stacktrace
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
Expand Down

0 comments on commit 0e440d0

Please sign in to comment.