File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,15 @@ export GRADLE_OPTS=-Xmx1024m
12
12
13
13
if [ " $TRAVIS_PULL_REQUEST " != " false" ]; then
14
14
echo -e " Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH ]"
15
- ./gradlew -PreleaseMode=pr build
15
+ ./gradlew -PreleaseMode=pr build --stacktrace
16
16
elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " == " " ]; then
17
- echo -e ' Build Branch with Snapshot => Branch [' $TRAVIS_BRANCH ' ]'
18
- ./gradlew -PreleaseMode=branch -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " build --stacktrace
17
+ if [ " $TRAVIS_BRANCH " != " 3.x" ]; then
18
+ echo -e ' Build secondary Branch (no snapshot) => Branch [' $TRAVIS_BRANCH ' ]'
19
+ ./gradlew -PreleaseMode=pr build --stacktrace
20
+ else
21
+ echo -e ' Build Branch with Snapshot => Branch [' $TRAVIS_BRANCH ' ]'
22
+ ./gradlew -PreleaseMode=branch -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " build --stacktrace
23
+ fi
19
24
elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " != " " ]; then
20
25
echo -e ' Build Branch for Release => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ]'
21
26
./gradlew -PreleaseMode=full -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " build --stacktrace
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
14
14
exit 0
15
15
fi
16
16
17
+ # only when on the 3.x branch and not tagged
18
+ if [ " $TRAVIS_BRANCH " != " 3.x" ] && [ " $TRAVIS_TAG " == " " ]; then
19
+ echo -e " On a secondary branch '$TRAVIS_BRANCH ', skipping JavaDocs pushback."
20
+ exit 0
21
+ fi
22
+
17
23
# get the current build tag if any
18
24
buildTag=" $TRAVIS_TAG "
19
25
echo -e " Travis tag: '$buildTag '"
You can’t perform that action at this time.
0 commit comments