forked from scalalandio/chimney
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (31 loc) · 1006 Bytes
/
.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
language: scala
scala:
- 2.11.12
- 2.12.7
- 2.13.0-M5
jdk:
- openjdk8
- openjdk11
dist: trusty
sudo: required
addons:
apt:
update: true
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
before_install:
- unset _JAVA_OPTIONS
- export JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx2048m"
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
before_script:
- unset _JAVA_OPTIONS
- if [[ "$TRAVIS_SCALA_VERSION" == 2.11.* ]]; then curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x; fi
script:
- if [[ "$TRAVIS_SCALA_VERSION" == 2.11.* ]]; then testNative=chimneyNative/test; else testNative=""; fi && sbt ++$TRAVIS_SCALA_VERSION clean scalafmtCheck test:scalafmtCheck compile chimneyJS/test $testNative coverage chimneyJVM/test coverageReport
after_success:
- bash <(curl -s https://codecov.io/bash)