File tree Expand file tree Collapse file tree 2 files changed +13
-26
lines changed Expand file tree Collapse file tree 2 files changed +13
-26
lines changed Load Diff This file was deleted.
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
- buildTag=" $TRAVIS_TAG "
5
-
6
- export GRADLE_OPTS=-Xmx1024m
7
-
8
- ./gradlew -PreleaseMode=full -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " build --stacktrace
4
+ if [ " $TRAVIS_PULL_REQUEST " != " false" ]; then
5
+ echo -e " Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH ]"
6
+ ./gradlew build
7
+ elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " == " " ]; then
8
+ echo -e ' Build Branch with Snapshot => Branch [' $TRAVIS_BRANCH ' ]'
9
+ ./gradlew -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " build artifactoryPublish --stacktrace --info
10
+ elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " != " " ]; then
11
+ echo -e ' Build Branch for Release => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ]'
12
+ ./gradlew -PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " -PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " build bintrayUpload --stacktrace --info
13
+ else
14
+ echo -e ' WARN: Should not be here => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ] Pull Request [' $TRAVIS_PULL_REQUEST ' ]'
15
+ ./gradlew build
16
+ fi
You can’t perform that action at this time.
0 commit comments