Skip to content

Commit 7ebf526

Browse files
author
Mark Kittisopikul
committed
Streamline Travis configuration, include Windows
1 parent bc2431d commit 7ebf526

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.travis.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,30 @@ language: julia
22
os:
33
- linux
44
- osx
5+
- windows
6+
before_install:
7+
- source ${TRAVIS_BUILD_DIR}/test/windows_java.sh
58
julia:
69
- 1.0
710
- 1.3
811
- nightly
9-
jdk:
10-
- oraclejdk8
11-
- openjdk10
12-
- openjdk11
1312

14-
end:
13+
env:
14+
- JULIA_COPY_STACKS=0
1515
- JULIA_COPY_STACKS=1
1616

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
1827
allow_failures:
19-
- julia_version: nightly
28+
- julia: nightly
2029

2130
branches:
2231
only:

test/windows_java.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

0 commit comments

Comments
 (0)