forked from com-lihaoyi/Ammonite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
95 lines (75 loc) · 2.27 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
88
89
90
91
92
93
94
95
language: scala
# Not sure why this is necessary, but sometime before this commit the master
# branch and other branches/tags stopped getting cloned down by travis automatically
install:
- git fetch origin master:master
matrix:
include:
- stage: build
env: CI_SCRIPT="mill -i unitTest"
jdk: oraclejdk8
scala: 2.11.12
- stage: build
env: CI_SCRIPT="mill -i unitTest"
jdk: oraclejdk9
scala: 2.12.7
- stage: build
env: CI_SCRIPT="mill -i unitTest"
jdk: oraclejdk8
scala: 2.12.7
- stage: build
env: CI_SCRIPT="mill -i integrationTest"
jdk: oraclejdk8
scala: 2.11.12
- stage: build
env: CI_SCRIPT="mill -i integrationTest"
jdk: oraclejdk9
scala: 2.12.7
- stage: build
env: CI_SCRIPT="mill -i integrationTest"
jdk: oraclejdk8
scala: 2.12.7
# Everything worked, *then* kick off a release
- stage: release
env: CI_SCRIPT="mill -i publishSonatype __.publishArtifacts 1 3"
jdk: oraclejdk8
scala: 2.11.12
- stage: release
env: CI_SCRIPT="mill -i publishSonatype __.publishArtifacts 2 3"
jdk: oraclejdk8
scala: 2.11.12
- stage: release
env: CI_SCRIPT="mill -i publishSonatype __.publishArtifacts 3 3"
jdk: oraclejdk8
scala: 2.11.12
- stage: release
env: CI_SCRIPT="mill -i publishDocs"
jdk: oraclejdk8
scala: 2.11.12
- stage: release
env: CI_SCRIPT="mill -i publishExecutable"
jdk: oraclejdk8
scala: 2.11.12
script:
- unset _JAVA_OPTIONS
- unset JVM_OPTS
- unset SBT_OPTS
- export PATH=~/bin/amm:~/bin/mill:$PATH
- mkdir -p ~/bin
# We use 2.11 since we need to run tests on Java 7
- if [ ! -f ~/bin/mill-0.2.7 ]; then sudo sh -c '(echo "#!/usr/bin/env sh" && curl -L https://github.com/lihaoyi/mill/releases/download/0.2.7/0.2.7) > ~/bin/mill-0.2.7 && chmod +x ~/bin/mill-0.2.7 && ( cd ~/bin && rm -f mill && ln -s mill-0.2.7 mill)'; fi
- JAVAOPTS="-Xmx2048m" $CI_SCRIPT
notifications:
email:
sudo: true
# Stolen from https://github.com/typelevel/cats/blob/master/.travis.yml
cache:
directories:
- $HOME/.coursier
- $HOME/bin
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