config/.travis.yml

33 lines
799 B
YAML
Raw Normal View History

# use Docker-based container (instead of OpenVZ)
sudo: false
2014-02-11 04:54:44 +08:00
language: scala
2019-10-14 16:53:41 +08:00
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
2019-05-07 21:21:54 +08:00
jobs:
include:
2019-10-14 16:53:41 +08:00
- 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
2019-05-07 21:21:54 +08:00
2019-01-24 16:54:41 +08:00
before_cache:
# Remove to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" -delete
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
2019-01-24 16:54:41 +08:00
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.jabba/jdk