forked from scalaz/scalaz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1.26 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
# Use Docker-based container (instead of OpenVZ)
sudo: false
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/launchers
language: scala
scala:
- 2.13.0-M2
- 2.12.4
- 2.11.11
jdk:
- oraclejdk8 # scalaz 7.3 does not support Java 7
script:
- git config core.whitespace tab-in-indent,trailing-space,blank-at-eol
- git show --oneline --check
- sbt "++$TRAVIS_SCALA_VERSION!" -J-Xmx3784m checkGenTypeClasses "project $TEST_PROJECT" test:compile
- 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
env:
matrix:
- TEST_PROJECT="rootJVM"
- TEST_PROJECT="rootJS"
addons:
apt:
packages:
- oracle-java8-installer
matrix:
include:
- scala: 2.12.4
jdk: oraclejdk9
env: TEST_PROJECT="rootJVM"
- scala: 2.11.11
jdk: oraclejdk8
sudo: required
before_install:
- curl https://raw.githubusercontent.com/scala-native/scala-native/21539aa97947f7/bin/travis_setup.sh | bash -
script:
- ./sbt "++$TRAVIS_SCALA_VERSION!" nativeTest/run nativeTest/publishLocal