config/.travis.yml
2019-10-14 10:53:41 +02:00

33 lines
799 B
YAML

# 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