-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
29 lines (29 loc) · 942 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
25
26
27
28
29
sudo: false
addons:
apt:
packages:
- git
language: groovy
jdk:
- openjdk8
env: TERM=dumb
cache:
directories:
- $HOME/.gradle
# don't build tags -- they would fail due to gradle-git anyway
branches:
except:
- /^v\d+\.\d+\.\d+$/
before_install:
- git fetch --unshallow
- git config user.email "[email protected]"
- git config user.name "Travis-CI"
- git config url.https://.insteadOf git://
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then git checkout -qf $TRAVIS_BRANCH; fi
# skip default gradlew assemble
install:
- echo "skip default gradlew assemble"
script:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ./gradlew release -Dorg.ajoberstar.grgit.auth.username=${GH_TOKEN} -Dorg.ajoberstar.grgit.auth.password -Dgradle.publish.key=${GRADLE_KEY} -Dgradle.publish.secret=${GRADLE_SECRET} --info --stacktrace || ./gradlew integTest build --info --stacktrace'
after_success:
- ./gradlew jacocoTestReport coveralls