forked from circe/circe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 1.04 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
language: scala
sudo: required
dist: trusty
scala:
- 2.10.6
- 2.11.11
jdk:
- oraclejdk7
- oraclejdk8
matrix:
include:
- scala: 2.12.3
jdk: oraclejdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.coursier
install:
- pip install --user codecov
script:
- sbt ++$TRAVIS_SCALA_VERSION clean coverage validateJVM;
- if [[ "$TRAVIS_SCALA_VERSION" == 2.11.* ]];
then sbt update;
fi
- if [[ "$TRAVIS_SCALA_VERSION" != 2.10.* ]];
then
sbt ++$TRAVIS_SCALA_VERSION hygiene/compile;
else echo "Skipping hygiene tests on 2.10 (see \#300)";
fi
- sbt ++$TRAVIS_SCALA_VERSION benchmark/test coverageReport && codecov;
- 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