forked from IntershopCommunicationsAG/javacc-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildTravis.sh
executable file
·23 lines (21 loc) · 924 Bytes
/
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=true"
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
else
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -PrunOnCI=true test build :bintrayUpload :publishPlugins -s
fi
else
if [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] and without Tag'
./gradlew test build -s
else
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -PrunOnCI=true test build :bintrayUpload :publishPlugins -s
fi
fi