Skip to content

Commit a8c306b

Browse files
Add Snapshot Support
1 parent 8937c60 commit a8c306b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

gradle/buildViaTravis.sh

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

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

0 commit comments

Comments
 (0)