Skip to content

Commit 62f48b2

Browse files
Update buildViaTravis.sh
1 parent a8c306b commit 62f48b2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

gradle/buildViaTravis.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/bin/bash
22
# This script will build the project.
33

4-
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
4+
if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
5+
echo -e 'Build Pull Request => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
6+
./gradlew -Prelease.useLastTag=true build
7+
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
58
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
6-
./gradlew -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" snapshot --stacktrace
9+
./gradlew -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" snapshot --stacktrace
710
else
8-
echo -e 'Build Pull Request => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
11+
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
912
./gradlew -Prelease.useLastTag=true build
1013
fi

0 commit comments

Comments
 (0)