forked from com-lihaoyi/Ammonite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (66 loc) · 2.01 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
language: scala
dist: trusty
# 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: openjdk11
scala: 2.12.12
- stage: build
env: CI_SCRIPT="./mill -i unitTest"
jdk: oraclejdk8
scala: 2.12.12
- stage: build
env: CI_SCRIPT="./mill -i unitTest"
jdk: oraclejdk8
scala: 2.13.3
- stage: build
env: CI_SCRIPT="./mill -i integrationTest"
jdk: openjdk11
scala: 2.12.12
- stage: build
env: CI_SCRIPT="./mill -i integrationTest"
jdk: oraclejdk8
scala: 2.12.12
- stage: build
env: CI_SCRIPT="./mill -i integrationTest"
jdk: oraclejdk8
scala: 2.13.3
# Everything worked, *then* kick off a release
- stage: release
before_script: test -z "$SONATYPE_PGP_SECRET" || echo "$SONATYPE_PGP_SECRET" | base64 --decode | gpg --import
env: CI_SCRIPT="./mill -i publishSonatype __.publishArtifacts 1 3"
jdk: oraclejdk8
scala: 2.11.12
- stage: release
before_script: test -z "$SONATYPE_PGP_SECRET" || echo "$SONATYPE_PGP_SECRET" | base64 --decode | gpg --import
env: CI_SCRIPT="./mill -i publishSonatype __.publishArtifacts 2 3"
jdk: oraclejdk8
scala: 2.11.12
- stage: release
before_script: test -z "$SONATYPE_PGP_SECRET" || echo "$SONATYPE_PGP_SECRET" | base64 --decode | gpg --import
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
# We use 2.11 since we need to run tests on Java 7
- JAVAOPTS="-Xmx2048m" $CI_SCRIPT
notifications:
email:
sudo: true