Skip to content

Commit b3640d8

Browse files
Add Release Branch
1 parent 62f48b2 commit b3640d8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gradle/buildViaTravis.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
# This script will build the project.
33

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

0 commit comments

Comments
 (0)