forked from typelevel/squants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (36 loc) · 1.34 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
language: scala
scala:
- 2.11.12
- 2.12.10
- 2.13.1
jdk:
- openjdk8
- oraclejdk11
# can be switched back to openjdk once Travis uses 11.0.3 fixing https://bugs.openjdk.java.net/browse/JDK-8208275
branches:
except:
- /^wip-.*$/
env:
- TRAVIS_NODE_VERSION="10.9.0" SCALAJS_VERSION="0.6.31"
# - TRAVIS_NODE_VERSION="10.9.0" SCALAJS_VERSION="1.0.0-M8"
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- which node
# small tricks to enable faster builds
sudo: false
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
- $HOME/.nvm
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
script:
# Your normal script
- sbt ++$TRAVIS_SCALA_VERSION squantsJVM/compile squantsJS/compile squantsJS/fastOptJS
- if [[ $TRAVIS_SCALA_VERSION == "2.11.12" ]]; then sbt ++$TRAVIS_SCALA_VERSION squantsNative/compile; fi;
- if [[ $SCALAJS_VERSION == "0.6.31" ]]; then sbt ++$TRAVIS_SCALA_VERSION squantsJS/test; fi;
- sbt ++$TRAVIS_SCALA_VERSION squantsJVM/test