forked from ome/bio-formats-documentation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
38 lines (33 loc) · 1.23 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
environment:
AV_PROJECTS: 'c:\projects'
AV_OME_M2: 'c:\projects\m2'
AV_OME_PYTHON: 'c:\projects\python'
AV_OME_SOURCE: 'c:\projects\source'
# Note that only Oracle JDK is provided.
matrix:
- java: 9
- java: 1.8
- java: 1.7
cache:
- '%AV_OME_M2% -> appveyor.yml'
- '%AV_OME_PYTHON% -> appveyor.yml'
os: 'Visual Studio 2015'
clone_folder: '%AV_OME_SOURCE%'
clone_depth: 5
platform: x64
init:
- git config --global core.autocrlf input
- 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%] == [9] set "JAVA_HOME=C:\Program Files\Java\jdk9"'
- PATH=%JAVA_HOME%\bin;%PATH%
- 'set "MAVEN_OPTS=-Dmaven.repo.local=%AV_OME_M2%"'
build_script:
# Cached venv is available from this point.
- 'if NOT EXIST "%AV_OME_PYTHON%\" set AV_OME_CREATE_VENV=true'
- 'if [%AV_OME_CREATE_VENV%] == [true] C:\Python27-x64\python -m pip install virtualenv'
- 'if [%AV_OME_CREATE_VENV%] == [true] C:\Python27-x64\python -m virtualenv %AV_OME_PYTHON%'
- PATH=%AV_OME_PYTHON%;%AV_OME_PYTHON%\scripts;%PATH%
- 'if [%AV_OME_CREATE_VENV%] == [true] python -m pip install sphinx'
- mvn install -DskipSphinxTests=true