We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8937c60 commit a8c306bCopy full SHA for a8c306b
gradle/buildViaTravis.sh
@@ -1,6 +1,10 @@
1
#!/bin/bash
2
# This script will build the project.
3
4
-echo -e 'Build Script => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
5
-
6
-./gradlew -Prelease.useLastTag=true build
+if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
+ echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
+ ./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