Skip to content

Commit

Permalink
Add Release Branch
Browse files Browse the repository at this point in the history
  • Loading branch information
benjchristensen committed Feb 4, 2015
1 parent 62f48b2 commit b3640d8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gradle/buildViaTravis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
# This script will build the project.

if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
echo -e 'Build Pull Request => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
echo -e 'Build Pull Request => Branch ['$TRAVIS_BRANCH']'
./gradlew -Prelease.useLastTag=true build
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" snapshot --stacktrace
else
elif if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -Prelease.useLastTag=true build
./gradlew -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" final --stacktrace
else
echo -e 'ERROR: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
fi

0 comments on commit b3640d8

Please sign in to comment.