Skip to content

Commit 46d4543

Browse files
committed
fixes
1 parent 5cf449a commit 46d4543

File tree

2 files changed

+13
-26
lines changed

2 files changed

+13
-26
lines changed

buildViaTravis.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

gradle/buildViaTravis.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#!/bin/bash
22
# This script will build the project.
33

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

0 commit comments

Comments
 (0)