forked from ben-manes/caffeine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 944 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
39
40
language: java
sudo: false
jdk:
- oraclejdk8
env:
- TERM=dumb
before_install:
- cp gradle.properties.ci gradle.properties
- export JAVA_OPTS="-Xmx384m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=0 -noverify"
script:
- ./gradlew findbugsMain pmdMain -Dfindbugs -Dpmd
- ./gradlew -Dscan check -x :caffeine:slowCaffeineTest -x :caffeine:slowGuavaTest
- travis_wait ./gradlew -Dscan :caffeine:slowCaffeineTest
- travis_wait ./gradlew -Dscan :caffeine:slowGuavaTest
- sh -c 'cd examples/stats-metrics && ./gradlew test'
- sh -c 'cd examples/write-behind-rxjava && mvn test'
after_success:
- ./gradlew coveralls uploadArchives
matrix:
fast_finish: true
addons:
apt:
packages:
- oracle-java8-installer
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/