forked from ome/bio-formats-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
42 lines (37 loc) · 1.17 KB
/
.appveyor.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
environment:
AV_PROJECTS: 'c:\projects'
AV_BF_M2: 'c:\projects\m2'
AV_BF_SOURCE: 'c:\projects\bioformats-examples'
# Note that only Oracle JDK is provided.
matrix:
- java: 10
build: "gradle publishToMavenLocal"
- java: 10
build: "mvn install"
- java: 1.8
build: "gradle publishToMavenLocal"
- java: 1.8
build: mvn install
- java: 1.7
build: "gradle publishToMavenLocal"
- java: 1.7
build: "mvn install"
cache:
- '%AV_BF_M2% -> appveyor.yml'
os: 'Visual Studio 2015'
clone_folder: '%AV_BF_SOURCE%'
clone_depth: 5
platform: x64
init:
- git config --global core.autocrlf input
- 'mkdir %HOMEDRIVE%\%HOMEPATH%\.gradle'
- 'echo org.gradle.daemon=false > %HOMEDRIVE%\%HOMEPATH%\.gradle\gradle.properties'
- 'if "%build%" == "gradle publishToMavenLocal" choco install gradle'
- refreshenv
- 'if [%java%] == [1.7] set "JAVA_HOME=C:\Program Files\Java\jdk1.7.0"'
- 'if [%java%] == [1.8] set "JAVA_HOME=C:\Program Files\Java\jdk1.8.0"'
- 'if [%java%] == [10] set "JAVA_HOME=C:\Program Files\Java\jdk10"'
- PATH=%JAVA_HOME%\bin;%PATH%
- 'set "MAVEN_OPTS=-Dmaven.repo.local=%AV_BF_M2%"'
build_script:
- '%build%'