forked from TeamWizardry/LibrarianLib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
24 lines (24 loc) · 989 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: java
install:
- sed -i 's:^[ \t]*build_number[ \t]*=\([ \t]*.*\)$:build_number=\1-SNAPSHOT:' gradle.properties
- ./gradlew setupCIWorkspace --daemon
script:
- ./gradlew build -Pbranch=$TRAVIS_BRANCH --daemon
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
jdk:
- openjdk8
after_success:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./gradlew publish artifactoryPublish -Pbranch=$TRAVIS_BRANCH -PmavenPassword=$REPO_PWD -PbintrayUser=$BINTRAY_USER -PbintrayApiKey=$BINTRAY_KEY --daemon; fi
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL