Skip to content
Permalink
Browse files
update travis for supporinting JDK on Win
  • Loading branch information
xiaoyekanren committed Apr 19, 2019
1 parent b2bb8ea commit ff3aaa937448b84c4968a0a17c052604256abbc2
Showing 1 changed file with 13 additions and 26 deletions.
@@ -54,38 +54,25 @@ matrix:
- AdoptOpenJDK/openjdk
update: true
casks: adoptopenjdk-openjdk8

- os: windows
language: c
name: win-oraclejdk8
name: win-oraclejdk11
install:
- choco install jdk8 -params 'installdir=c:\\java8'
- export PATH=$PATH:"/c/java8/bin"
- export JAVA_HOME="/c/java8"
- choco install maven
- choco install jdk11 -params 'installdir=c:\\java11'
- export PATH=$PATH:"/c/java11/bin"
- export JAVA_HOME="/c/java11"
# - choco install maven
- wget https://www-eu.apache.org/dist/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.zip
- /C/Progra~1/7-Zip/7z.exe x apache-maven-3.6.1-bin.zip -o/c/mvn361
- export "MAVEN_HOME=/c/mvn361/apache-maven-3.6.1"
- export "M2_HOME=/c/mvn361/apache-maven-3.6.1"
- export "PATH=$MAVEN_HOME/bin:$PATH"
script:
- java -version
- mvn -version
- mvn -B clean integration-test
# - os: windows
# language: c
# name: win-oraclejdk11
# install:
# - choco install jdk11 -params 'installdir=c:\\java11'
# - export PATH=$PATH:"/c/java11/bin"
# - export JAVA_HOME="/c/java11"
# - choco install maven
# script:
# - java -version
# - mvn -B clean integration-test
#choco does not support openjdk8. we have to install it manually
# - os: windows
# language: c
# name: win-openjdk11
# install:
# #for openjdk, -params does not work.
# - choco install openjdk
# - export PATH=$PATH:"C:\Program Files\OpenJDK\bin"
# - export JAVA_HOME="C:\Program Files\OpenJDK"
# - choco install maven

- os: linux
name: linux-openjdk11
dist: trusty

0 comments on commit ff3aaa9

Please sign in to comment.