File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This script will build the project.
3
+
4
+ if [ " $TRAVIS_PULL_REQUEST " != " false" ]; then
5
+ echo -e " Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH ]"
6
+ ./gradlew -Prelease.useLastTag=true build
7
+ elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " == " " ]; then
8
+ echo -e ' Build Branch with Snapshot => Branch [' $TRAVIS_BRANCH ' ]'
9
+ ./gradlew -Prelease.travisci=true -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " build snapshot --stacktrace
10
+ elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " != " " ]; then
11
+ echo -e ' Build Branch for Release => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ]'
12
+ ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " final --stacktrace
13
+ else
14
+ echo -e ' WARN: Should not be here => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ] Pull Request [' $TRAVIS_PULL_REQUEST ' ]'
15
+ ./gradlew -Prelease.useLastTag=true build
16
+ fi
Original file line number Diff line number Diff line change
1
+ # Thu Jul 23 15:18:42 PDT 2015
2
+ distributionBase =GRADLE_USER_HOME
3
+ distributionPath =wrapper/dists
4
+ zipStoreBase =GRADLE_USER_HOME
5
+ zipStorePath =wrapper/dists
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
You can’t perform that action at this time.
0 commit comments