config/.travis.yml

32 lines
730 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-01-24 16:54:41 +08:00
before_install:
# using jabba for custom jdk management
- curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.2/install.sh | bash && . ~/.jabba/jabba.sh
- jabba install adopt@1.8.202-08
2019-05-07 21:21:54 +08:00
- jabba install adopt@1.11.0-1
2015-01-27 17:49:35 +08:00
script:
2019-05-07 21:21:54 +08:00
- jabba use $JDK
- java -version
- sbt ++$TRAVIS_SCALA_VERSION test doc
2019-05-07 21:21:54 +08:00
jobs:
include:
- env: JDK=adopt@1.8.202-08
- env: JDK=adopt@1.11.0-1
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