forked from Netflix/mantis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallViaTravis.sh
More file actions
executable file
·16 lines (15 loc) · 908 Bytes
/
installViaTravis.sh
File metadata and controls
executable file
·16 lines (15 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# This script will install the project.
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Assemble Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
./gradlew --refresh-dependencies assemble --info
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Assemble Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew --refresh-dependencies -Prelease.travisci=true assemble --info
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Assemble Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew --refresh-dependencies -Prelease.travisci=true -Prelease.useLastTag=true assemble --info
else
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
./gradlew --refresh-dependencies assemble --info
fi