forked from scalaz/scalaz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (80 loc) · 3.06 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Use Docker-based container (instead of OpenVZ)
sudo: false
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/launchers
language: scala
scala:
- 2.11.11
- 2.10.6
jdk:
- openjdk7
script:
- git config core.whitespace tab-in-indent,trailing-space,blank-at-eol
- git show --oneline --check
- sbt ++$TRAVIS_SCALA_VERSION -J-Xmx3784m check-gen-type-classes "project $TEST_PROJECT" test:compile mimaReportBinaryIssues
- sbt ++$TRAVIS_SCALA_VERSION "project $TEST_PROJECT" test "project /" $(if [[ "${TEST_PROJECT}" == "rootJVM" ]]; then echo "publishLocal"; fi)
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
matrix:
include:
- scala: 2.13.0-M2
jdk: oraclejdk8
env: TEST_PROJECT="rootJVM"
script:
- git clone -b v0.9.4 https://github.com/non/kind-projector.git
- cd kind-projector
- sbt ++${TRAVIS_SCALA_VERSION} 'set libraryDependencies ~= {_.filterNot(_.organization == "org.ensime")}' publishLocal
- cd ..
- sbt ++${TRAVIS_SCALA_VERSION} -J-Xmx3784m checkGenTypeClasses "project $TEST_PROJECT" test:compile mimaReportBinaryIssues
- sbt ++$TRAVIS_SCALA_VERSION "project $TEST_PROJECT" test
- scala: 2.13.0-M2
jdk: oraclejdk8
env: TEST_PROJECT="rootJS"
script:
- git clone -b v0.9.4 https://github.com/non/kind-projector.git
- cd kind-projector
- sbt ++${TRAVIS_SCALA_VERSION} 'set libraryDependencies ~= {_.filterNot(_.organization == "org.ensime")}' publishLocal
- cd ..
- sbt ++${TRAVIS_SCALA_VERSION} -J-Xmx3784m checkGenTypeClasses "project $TEST_PROJECT" test:compile mimaReportBinaryIssues
- sbt ++$TRAVIS_SCALA_VERSION "project $TEST_PROJECT" test
- scala: 2.12.4
jdk: oraclejdk8
env: TEST_PROJECT="rootJVM"
- scala: 2.12.4
jdk: oraclejdk8
env: TEST_PROJECT="rootJS"
- scala: 2.11.11
jdk: oraclejdk8
sudo: required
dist: trusty
before_install:
- curl https://raw.githubusercontent.com/scala-native/scala-native/v0.3.2/bin/travis_setup.sh | bash -
script:
- ./sbt ++$TRAVIS_SCALA_VERSION nativeTest/run nativeTest/publishLocal
- scala: 2.12.4
jdk: oraclejdk9
before_install:
# https://github.com/sbt/sbt/pull/2951
- git clone https://github.com/retronym/java9-rt-export
- cd java9-rt-export/
- git checkout 1019a2873d057dd7214f4135e84283695728395d
- echo "sbt.version=1.0.2" > project/build.properties
- sbt package
- java -version
- mkdir -p $HOME/.sbt/0.13/java9-rt-ext; java -jar target/java9-rt-export-*.jar $HOME/.sbt/0.13/java9-rt-ext/rt.jar
- jar tf $HOME/.sbt/0.13/java9-rt-ext/rt.jar | grep java/lang/Object
- cd ..
script:
- ./sbt -Dscala.ext.dirs=$HOME/.sbt/0.13/java9-rt-ext ++$TRAVIS_SCALA_VERSION -J-Xmx3784m checkGenTypeClasses rootJVM/test rootJS/test
env:
matrix:
- TEST_PROJECT="rootJVM"
- TEST_PROJECT="rootJS"
addons:
apt:
packages:
- oracle-java8-installer