Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit 079f26d

Browse files
authored
Merge pull request #7 from sparsetech/feat/csbt
Travis CI: Use csbt to simplify configuration
2 parents 1d5205c + ba41561 commit 079f26d

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.travis.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
language: scala
2-
scala:
3-
- 2.11.11
4-
- 2.12.8
1+
language: java
2+
env:
3+
- TRAVIS_SCALA_VERSION=2.11.11
4+
- TRAVIS_SCALA_VERSION=2.12.8
55
jdk:
66
- oraclejdk8
77

@@ -12,20 +12,18 @@ addons:
1212
apt:
1313
update: true
1414

15-
# These directories are cached to S3 at the end of the build
15+
# Cache directory to S3 at the end of the build
1616
cache:
1717
directories:
18-
- $HOME/.ivy2/cache
19-
- $HOME/.sbt/boot
18+
- $HOME/.cache/coursier
2019

2120
# From https://raw.githubusercontent.com/scalalandio/chimney/master/.travis.yml
2221
before_script:
2322
- if [[ "$TRAVIS_SCALA_VERSION" == 2.11.* ]]; then curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x; fi
2423

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

0 commit comments

Comments
 (0)