-
Notifications
You must be signed in to change notification settings - Fork 35
/
.travis.yml
38 lines (32 loc) · 984 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
30
31
32
33
34
35
36
37
38
language: java
jdk: openjdk8
sudo: true
os:
- linux
addons:
apt_packages:
- pandoc
before_cache:
# Do not cache a few Gradle files/directories (see https://docs.travis-ci.com/user/languages/java/#Caching)
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
# Gradle dependencies
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install:
- true
before_script:
- sed -i -e 's/pycharmPath=/#pycharmPath=/g' gradle.properties
- sed -i -e 's/#pythonPlugin=/pythonPlugin=/g' gradle.properties
script:
- set -o pipefail
- ./gradlew clean check --profile --continue 2>&1 | tee build.log
- set +o pipefail
- |
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
./gradlew violationCommentsToGitHub -DGITHUB_PULLREQUESTID=$TRAVIS_PULL_REQUEST -DGITHUB_OAUTH2TOKEN=$GITHUB_OAUTH2TOKEN --info
fi
- pandoc `ls -1rt build/reports/profile/profile-*.html | tail -n1` -t plain
- ./gradlew dependencyUpdate