forked from json4s/json4s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.5 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
37
38
39
40
41
42
43
44
45
46
47
48
language: scala
scala:
- 2.10.6
- 2.11.11
matrix:
include:
- scala: 2.12.2
jdk: oraclejdk8
- scala: 2.13.0-M1
jdk: oraclejdk8
script:
# https://github.com/etorreborre/specs2/issues/573
- travis_retry sbt ++$TRAVIS_SCALA_VERSION javaVersionCheck compile
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
- dist: trusty
group: edge
sudo: required
scala: 2.12.2
jdk: oraclejdk9
script:
# https://github.com/sbt/sbt/pull/2951
- git clone https://github.com/retronym/java9-rt-export
- cd java9-rt-export/
- git checkout 1019a2873d057dd7214f4135e84283695728395d
- jdk_switcher use oraclejdk8
- sbt package
- jdk_switcher use oraclejdk9
- mkdir -p $HOME/.sbt/0.13/java9-rt-ext; java -jar target/java9-rt-export-*.jar $HOME/.sbt/0.13/java9-rt-ext/rt.jar
- jar tf $HOME/.sbt/0.13/java9-rt-ext/rt.jar | grep java/lang/Object
- cd ..
- ./sbt -Dscala.ext.dirs=$HOME/.sbt/0.13/java9-rt-ext ++$TRAVIS_SCALA_VERSION test
sudo: false
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION
before_install:
- export TZ=Australia/Canberra
script:
#- travis_retry sbt ++$TRAVIS_SCALA_VERSION mimaReportBinaryIssues test
- travis_retry sbt ++$TRAVIS_SCALA_VERSION javaVersionCheck test
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
addons:
apt:
packages:
- oracle-java8-installer