Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: scala
scala:
- 2.11.11
- 2.12.8
language: java
env:
- TRAVIS_SCALA_VERSION=2.11.11
- TRAVIS_SCALA_VERSION=2.12.8
jdk:
- oraclejdk8

Expand All @@ -12,20 +12,18 @@ addons:
apt:
update: true

# These directories are cached to S3 at the end of the build
# Cache directory to S3 at the end of the build
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $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:
- if [[ "$TRAVIS_SCALA_VERSION" == 2.11.* ]]; then testNative=tomlNative/test; else testNative=""; fi && sbt ++$TRAVIS_SCALA_VERSION tomlJVM/test tomlJS/test $testNative

before_cache:
# Clean up the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
- set -x &&
if [[ "$TRAVIS_SCALA_VERSION" == 2.11.* ]]; then testNative=tomlNative/test; else testNative=""; fi &&
curl -o csbt https://raw.githubusercontent.com/coursier/sbt-launcher/master/csbt &&
chmod +x csbt &&
./csbt --add-coursier=true ++$TRAVIS_SCALA_VERSION tomlJVM/test tomlJS/test $testNative