-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildTravis.sh
executable file
·23 lines (21 loc) · 1.03 KB
/
buildTravis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# This script will build the project.
export JAVA_OPTS="-Xms96m -Xmx128m -XX:MaxPermSize=64m -XX:+CMSClassUnloadingEnabled"
// export GRADLE_OPTS="-Dorg.gradle.daemon=false"
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
if [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] and without Tag'
./gradlew test build -s -Dorg.gradle.testkit.debug=true
else
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -PrunOnCI=true test build :bintrayUpload :publishPlugins -s -Dorg.gradle.testkit.debug=true
fi
else
if [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] and without Tag'
./gradlew test build -s -Dorg.gradle.testkit.debug=true
else
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -PrunOnCI=true test build :bintrayUpload :publishPlugins -s -Dorg.gradle.testkit.debug=true
fi
fi