forked from circe/circe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (41 loc) · 1.16 KB
/
.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
42
43
44
45
46
47
dist: xenial
language: scala
scala:
- 2.11.12
- 2.13.0-RC2
- 2.12.8
jdk:
- openjdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.coursier
install:
- pip install --user codecov
- rvm use 2.6.0 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.8.5
script:
- sbt ++$TRAVIS_SCALA_VERSION clean coverage validateJVM;
- if [[ "$TRAVIS_SCALA_VERSION" != 2.13.* ]];
then
sbt ++$TRAVIS_SCALA_VERSION java8JVM/test;
else echo "Skipping java8 module tests on 2.13";
fi
- 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