-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
36 lines (30 loc) · 1.07 KB
/
.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
25
26
27
28
29
30
31
32
33
34
35
36
env:
matrix:
- TERM=dumb
global:
- secure: o7bQffEMsStS0X7oWJ/i7QWeHoZTqQASLYx0PsfROyTCwVaNnSjuj5jsEIpO2wSppOSVD+tu6LOiCG06XvwWFA79hZh0DzPPq1nbVof4PhScNljYegCG7X6Nihrn38HOj9oxIZ6CJEZPaeyg1OzAPGs0Kir/MDiCcV3W9NDMwHo=
- secure: VHuocNAOIkVh/TcDnTkXQSNBQtstJsCnfsiry4ROk4NCU3TkwkS1VLakhsErwEI1Ri5rl8jSOsYtOUBDfRiJq6nHEg7ilVERz9BVDhTmri6QlQv46OunBDWUrsqJjB1Q6AsEPBl0L1dqTe2RrP3AvmCXglfeFZKoEbWlmDpGSWE=
language: groovy
jdk: oraclejdk8
before_cache:
- for lockFile in $(find ~/.gradle -name "*.lock");
do sudo rm -rf $lockFile;
done
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
addons:
apt:
packages:
- bash
install: true
script: ./gradlew clean build
after_failure:
- ./gradlew clean check --debug
after_success:
- bash gradlew jacocoTestReport coveralls
# publishing plugin
- test -n "$TRAVIS_TAG" && echo "gradle.publish.key=${GRADLE_PUBLISH_KEY}" >> ~/.gradle/gradle.properties
- test -n "$TRAVIS_TAG" && echo "gradle.publish.secret=${GRADLE_PUBLISH_SECRET}" >> ~/.gradle/gradle.properties
- test -n "$TRAVIS_TAG" && ./gradlew publishPlugin -i