forked from ome/bio-formats-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
37 lines (32 loc) · 1.22 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
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: 10
- java: 1.8
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.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_OME_M2%"'
build_script:
- git submodule update --init --recursive --remote
# 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 -r ome-model\requirements.txt'
- mvn install -DskipSphinxTests=true