File tree 2 files changed +26
-16
lines changed
2 files changed +26
-16
lines changed Original file line number Diff line number Diff line change 1
- language : scala
1
+ dist : xenial
2
+ group : stable
2
3
3
- jdk :
4
- - openjdk8
5
- - openjdk11
4
+ language : scala
6
5
7
6
scala :
8
7
- 2.12.8
19
18
- secure : " Xw7rI/qlML1nD2e2XwlakkhKAWNGZKqqE+Q3ntTvFpfHryl7KLCvVzJ4LIavnL6kGJaWOgy9vlSoEWn5g9nqHSfE31C/k5pY5nTMAKiwiJzfAS+r0asKXW2gmKhwtcTBkqyLVOZLCJSPVlFRQyfBJHY+Fs0L3KWcnMQgtBlyDhU="
20
19
matrix :
21
20
# The empty SCALAJS_VERSION will only compile for the JVM
22
- - SCALAJS_VERSION=
23
- - SCALAJS_VERSION=0.6.28
24
- - SCALAJS_VERSION=1.0.0-M8
21
+ - SCALAJS_VERSION= ADOPTOPENJDK=8
22
+ - SCALAJS_VERSION=0.6.28 ADOPTOPENJDK=8
23
+ - SCALAJS_VERSION=1.0.0-M8 ADOPTOPENJDK=8
24
+ - SCALAJS_VERSION= ADOPTOPENJDK=11
25
25
26
26
matrix :
27
27
exclude :
28
- - jdk : openjdk11
29
- env : SCALAJS_VERSION=0.6.28
30
- - jdk : openjdk11
31
- env : SCALAJS_VERSION=1.0.0-M8
32
28
- scala : 0.15.0-RC1
33
- env : SCALAJS_VERSION=0.6.28
29
+ env : SCALAJS_VERSION=0.6.28 ADOPTOPENJDK=8
34
30
- scala : 0.15.0-RC1
35
- env : SCALAJS_VERSION=1.0.0-M8
31
+ env : SCALAJS_VERSION=1.0.0-M8 ADOPTOPENJDK=8
32
+
33
+ before_install :
34
+ # adding $HOME/.sdkman to cache would create an empty directory, which interferes with the initial installation
35
+ - " [[ -d /home/travis/.sdkman/ ]] && [[ -d /home/travis/.sdkman/bin/ ]] || rm -rf /home/travis/.sdkman/"
36
+ - curl -sL https://get.sdkman.io | bash
37
+ - echo sdkman_auto_answer=true > /home/travis/.sdkman/etc/config
38
+ - source "/home/travis/.sdkman/bin/sdkman-init.sh"
39
+
40
+ install :
41
+ - sdk install java $(sdk list java | grep -o "$ADOPTOPENJDK\.[0-9\.]*hs-adpt" | tail -1)
42
+ - unset _JAVA_OPTIONS
43
+ - unset JAVA_HOME
44
+ - java -Xmx32m -version
36
45
37
46
script :
38
47
- admin/build.sh
@@ -42,5 +51,6 @@ before_cache:
42
51
- find $HOME/.ivy2/cache -name "ivydata-*.properties" | xargs rm
43
52
cache :
44
53
directories :
45
- - $HOME/.ivy2/cache
46
- - $HOME/.sbt
54
+ - $HOME/.ivy2/cache
55
+ - $HOME/.sbt
56
+ - $HOME/.sdkman
Original file line number Diff line number Diff line change 16
16
# of the existing tag. Then a new tag can be created for that commit, e.g., `v1.2.3#2.13.0-M5`.
17
17
# Everything after the `#` in the tag name is ignored.
18
18
19
- if [[ " $TRAVIS_JDK_VERSION " == " openjdk8 " && " $TRAVIS_SCALA_VERSION " =~ 2\. 1[23]\. .* ]]; then
19
+ if [[ " $ADOPTOPENJDK " == " 8 " && " $TRAVIS_SCALA_VERSION " =~ 2\. 1[23]\. .* ]]; then
20
20
RELEASE_COMBO=true;
21
21
fi
22
22
You can’t perform that action at this time.
0 commit comments