forked from circe/circe
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
41 lines (35 loc) · 1010 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
31
32
33
34
35
36
37
38
39
40
41
language: scala
scala:
- 2.11.12
- 2.13.0-M4
- 2.12.6
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.coursier
install:
- pip install --user codecov
- rvm use 2.2.8 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.2.1
script:
- sbt ++$TRAVIS_SCALA_VERSION clean coverage validateJVM;
- sbt ++$TRAVIS_SCALA_VERSION benchmark/test coverageReport && codecov;
- if [[ "$TRAVIS_SCALA_VERSION" == 2.12.* ]];
then
sbt ++$TRAVIS_SCALA_VERSION docs/makeMicrosite;
else echo "Skipping docs on 2.11 and 2.13";
fi
- if [[ "$TRAVIS_BRANCH" == "scalajs" ]];
then
sbt ++$TRAVIS_SCALA_VERSION clean validateJS;
else echo "Skipping Scala.js build";
fi
# See http://www.scala-sbt.org/0.13/docs/Travis-CI-with-sbt.html
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm