forked from circe/circe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 1.02 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
language: scala
sudo: required
dist: trusty
scala:
- 2.10.6
- 2.11.8
jdk:
- oraclejdk7
- oraclejdk8
matrix:
include:
- scala: 2.12.1
jdk: oraclejdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
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