You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
787 B
16 lines
787 B
#!/bin/bash |
|
# This script will build the project. |
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then |
|
echo -e "Assemble Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]" |
|
./gradlew assemble |
|
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then |
|
echo -e 'Assemble Branch with Snapshot => Branch ['$TRAVIS_BRANCH']' |
|
./gradlew -Prelease.travisci=true assemble |
|
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then |
|
echo -e 'Assemble Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']' |
|
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true assemble |
|
else |
|
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']' |
|
./gradlew assemble |
|
fi
|
|
|