File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# This script will build the project.
3
3
4
- if [ " $TRAVIS_PULL_REQUEST " ]; then
5
- echo -e ' Build Pull Request [ ' $TRAVIS_PULL_REQUEST ' ] => Branch [' $TRAVIS_BRANCH ' ] '
4
+ if [ " $TRAVIS_PULL_REQUEST " != " false " ]; then
5
+ echo -e " Build Pull Request # $TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH ] "
6
6
./gradlew -Prelease.useLastTag=true build
7
- elif [ ! " $TRAVIS_PULL_REQUEST " ] && [ " $TRAVIS_TAG " == " " ]; then
7
+ elif [ " $TRAVIS_PULL_REQUEST " == " false " ] && [ " $TRAVIS_TAG " == " " ]; then
8
8
echo -e ' Build Branch with Snapshot => Branch [' $TRAVIS_BRANCH ' ]'
9
9
./gradlew -Prelease.travisci=true -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " snapshot --stacktrace
10
- elif [ ! " $TRAVIS_PULL_REQUEST " ] && [ " $TRAVIS_TAG " != " " ]; then
10
+ elif [ " $TRAVIS_PULL_REQUEST " == " false " ] && [ " $TRAVIS_TAG " != " " ]; then
11
11
echo -e ' Build Branch for Release => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ]'
12
12
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " final --stacktrace
13
13
else
You can’t perform that action at this time.
0 commit comments