forked from IntershopCommunicationsAG/isml-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildTravis.sh
executable file
·23 lines (21 loc) · 919 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="-Xmx1024M -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512M"
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