forked from scalaz/scalaz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 1.39 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
# Use Docker-based container (instead of OpenVZ)
sudo: false
cache:
directories:
- $HOME/.ivy2/cache
# At the moment, sbt 0.13.5 is preinstalled in Travis VM image,
# which fortunately corresponds to current scalaz settings.
# The line below can be used to cache a given sbt version.
# - $HOME/.sbt/launchers/0.13.x
# At the moment, Scala 2.11.2 and 2.10.4 are preinstalled in Travis VM
# image, which fortunately corresponds to current scalaz settings.
# The line below is used to cache the scala version used by the build
# job, as these versions might be replaced after a Travis CI build
# environment upgrade (e.g. scala 2.11.2 could be replaced by scala 2.11.4).
- $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION
language: scala
scala:
- 2.12.0-M3
- 2.11.8
- 2.10.6
jdk:
- oraclejdk8 # scalaz 7.3 does not support Java 7
script:
- sbt ++$TRAVIS_SCALA_VERSION -J-Xmx3784m check-gen-type-classes "project $TEST_PROJECT" test:compile
- sbt ++$TRAVIS_SCALA_VERSION "project $TEST_PROJECT" test "project /" $(if [[ "${TEST_PROJECT}" == "rootJVM" ]]; then echo "publishLocal"; fi)
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
env:
matrix:
- TEST_PROJECT="rootJVM"
- TEST_PROJECT="rootJS"
addons:
apt:
packages:
- oracle-java8-installer