forked from sparsetech/toml-scala
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
30 lines (25 loc) · 913 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
language: java
env:
- TRAVIS_SCALA_VERSION=2.11.11
- TRAVIS_SCALA_VERSION=2.12.8
- TRAVIS_SCALA_VERSION=2.13.0
jdk:
- oraclejdk8
dist: trusty
sudo: required
addons:
apt:
update: true
# Cache directory to S3 at the end of the build
cache:
directories:
- $HOME/.cache/coursier
# From https://raw.githubusercontent.com/scalalandio/chimney/master/.travis.yml
before_script:
- if [[ "$TRAVIS_SCALA_VERSION" == 2.11.* ]]; then curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x; fi
script:
- set -x &&
if [[ "$TRAVIS_SCALA_VERSION" == 2.11.* ]]; then testNative=tomlNative/test; else testNative=""; fi &&
curl -L -o csbt https://github.com/coursier/sbt-launcher/releases/download/v1.2.14/csbt &&
chmod +x csbt &&
COURSIER_SBT_LAUNCHER_ADD_PLUGIN=true ./csbt ++$TRAVIS_SCALA_VERSION tomlJVM/test tomlJS/test $testNative