forked from circe/circe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (45 loc) · 1.37 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
48
49
50
51
dist: xenial
language: scala
scala:
- 2.13.0
- 2.12.10
jdk:
- openjdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.coursier
install:
- pip install --user codecov
- rvm use 2.6.5 --install --fuzzy
- yes | gem update --system --force
- gem install sass
- gem install jekyll -v 4.0.0
script:
- if [[ "$TRAVIS_SCALA_VERSION" == 0.* ]];
then
sbt ++$TRAVIS_SCALA_VERSION numbersJVM/test coreJVM/test genericJVM/test jawn/test testsJVM/test;
else
sbt ++$TRAVIS_SCALA_VERSION clean coverage validateJVM benchmark/test &&
sbt ++$TRAVIS_SCALA_VERSION benchmark/test;
fi
- if [[ "$TRAVIS_SCALA_VERSION" == 2.12.* ]];
then
sbt ++$TRAVIS_SCALA_VERSION docs/makeMicrosite &&
sbt ++$TRAVIS_SCALA_VERSION coverageReport && codecov;
else echo "Skipping code coverage reporting and docs on non-2.12 build";
fi
- if [[ "$TRAVIS_SCALA_VERSION" == 2.13.* ]];
then
sbt ++$TRAVIS_SCALA_VERSION genericSimpleJVM/test;
else echo "Skipping generic-simple on non-2.13 build";
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