forked from scalameta/scalameta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (63 loc) · 1.61 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
sudo: required
os: linux
dist: trusty
jdk: oraclejdk8
language: scala
git:
depth: 9999
install:
- git fetch --tags
- 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 8
script:
- ./bin/runci.sh $CI_TEST
addons:
apt:
update: true
matrix:
include:
- env:
- CI_TEST: check
- env:
- CI_TEST: ci-fast
- CI_SCALA_VERSION: 2.11.12
- CI_PUBLISH: true
- env:
- CI_TEST: ci-fast
- CI_SCALA_VERSION: 2.11.12
- CI_SCALA_JS: true
- env:
- CI_TEST: ci-native
- CI_SCALA_VERSION: 2.11.12
- CI_SCALA_NATIVE: true
before_install:
- curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x
- env:
- CI_TEST: ci-fast
- CI_SCALA_VERSION: 2.12.6
- CI_PUBLISH: true
- env:
- CI_TEST: ci-fast
- CI_SCALA_VERSION: 2.12.6
- CI_SCALA_JS: true
- env:
- CI_TEST: ci-slow
- CI_SCALA_VERSION: 2.12.6
- env:
- CI_TEST: mima
cache:
directories:
- $HOME/.sbt/0.13/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.coursier
- target/repos
before_cache:
- du -h -d 1 $HOME/.ivy2/cache
- du -h -d 2 $HOME/.sbt/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- find $HOME/.ivy2/cache -name "*scalafix*.xml" -type f -delete
- rm -rf $HOME/.ivy2/local
after_success:
- "./bin/ci-publish.sh"