File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,30 @@ language: julia
2
2
os :
3
3
- linux
4
4
- osx
5
+ - windows
6
+ before_install :
7
+ - source ${TRAVIS_BUILD_DIR}/test/windows_java.sh
5
8
julia :
6
9
- 1.0
7
10
- 1.3
8
11
- nightly
9
- jdk :
10
- - oraclejdk8
11
- - openjdk10
12
- - openjdk11
13
12
14
- end :
13
+ env :
14
+ - JULIA_COPY_STACKS=0
15
15
- JULIA_COPY_STACKS=1
16
16
17
- matrix :
17
+ jobs :
18
+ exclude :
19
+ - os : linux
20
+ env : JULIA_COPY_STACKS=0
21
+ - os : mac
22
+ env : JULIA_COPY_STACKS=0
23
+ - julia : 1.0
24
+ env : JULIA_COPY_STACKS=0
25
+ - os : windows
26
+ env : JULIA_COPY_STACKS=1
18
27
allow_failures :
19
- - julia_version : nightly
28
+ - julia : nightly
20
29
21
30
branches :
22
31
only :
Original file line number Diff line number Diff line change
1
+ if [ $TRAVIS_OS_NAME == " windows" ]; then
2
+ # From https://travis-ci.community/t/java-support-on-windows/286/7
3
+ # export JAVA_HOME=${JAVA_HOME:-/c/jdk}
4
+ # export PATH=${JAVA_HOME}/bin:${PATH}
5
+ # choco install jdk8 -params 'installdir=c:\\jdk' -y
6
+ choco install openjdk11
7
+ # export JAVA_HOME="C:\Program Files\OpenJDK\openjdk-11.0.5_10"
8
+ JAVA_ROOT_DIR=' C:\Program Files\OpenJDK\'
9
+ export JAVA_HOME=` find " $JAVA_ROOT_DIR " -name " openjdk-11*" | tail -n 1`
10
+ fi
11
+ echo " JAVA_HOME: " $JAVA_HOME
You can’t perform that action at this time.
0 commit comments