forked from lightbend/config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (26 loc) · 799 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
# use Docker-based container (instead of OpenVZ)
sudo: false
language: scala
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jabba use "$_" && java -Xmx32m -version
jobs:
include:
- stage: jdk8
name: "test and docs on jdk8"
script: sbt ++$TRAVIS_SCALA_VERSION test doc
- stage: jdk11
name: "test and docs on jdk11"
script: sbt ++$TRAVIS_SCALA_VERSION test doc
env: TRAVIS_JDK=11
env:
global:
- TRAVIS_JDK=8
before_cache:
# Remove to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" -delete
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.jabba/jdk