Skip to content

Commit a598759

Browse files
committed
if running on a forked repository (with no environment variables present), do a simple build
1 parent 3052527 commit a598759

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

buildViaTravis.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
55
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
66
./gradlew build
7+
elif [ "${bintrayUser}" == "" ]; then
8+
echo -e "Building with no environment variables set => Forked repository"
9+
./gradlew build
710
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
811
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
912
./gradlew -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build snapshot

0 commit comments

Comments
 (0)