-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.appveyor.yml
143 lines (122 loc) · 5.21 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# AppVeyor.com is a Continuous Integration service to build and run tests under
# Windows
# branches to build
branches:
except:
- gh-pages
os: Visual Studio 2015
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
global:
PYTHON: "C:\\Miniconda3-x64"
APPVEYOR_SAVE_CACHE_ON_ERROR: true
NUMPY: numpy
MATPLOTLIB: matplotlib
MPLBACKEND: agg
JSONSCHEMA: jsonschema
INSTALLZMQ: 1
INSTALLRMQ: 0
INSTALLAPY: 0
INSTALLLPY: 0
INSTALLR: 1
INSTALLC: 1
INSTALLFORTRAN: 1
INSTALLSBML: 1
BUILDDOCS: 0
YGG_CONDA: 1
YGG_TEST_FLAGS:
YGG_SECOND_TEST:
erlang_download_url: "http://erlang.org/download/otp_win64_20.2.exe"
erlang_exe_path: "C:\\Users\\appveyor\\erlang.exe"
erlang_home_dir: "C:\\Users\\appveyor\\erlang"
rabbitmq_installer_download_url: "https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.3/rabbitmq-server-3.7.3.exe"
rabbitmq_installer_path: "C:\\Users\\appveyor\\rabbitmq-server-3.7.3.exe"
matrix:
- platform: x64
PYTHON_VERSION: "3.6"
YGG_TEST_FLAGS: "drivers/tests/test_OSRModelDriver.py --test-suite=examples_part1"
- platform: x64
PYTHON_VERSION: "3.6"
YGG_TEST_FLAGS: "--test-suite=examples_part2 --languages c cpp"
YGG_SECOND_TEST: "yggtest --ci --test-suite=types --languages cpp"
- platform: x64
PYTHON_VERSION: "3.6"
YGG_TEST_FLAGS: "--long-running --skip-language=osr"
- platform: x64
PYTHON_VERSION: "3.7"
INSTALLZMQ: 0
YGG_TEST_FLAGS: "--long-running"
YGG_SECOND_TEST: "yggtest --ci --test-suite=examples_part2"
- platform: x64
PYTHON_VERSION: "3.6"
YGG_TEST_FLAGS: "--test-suite=types tests/test_config.py drivers/tests/test_CompiledModelDriver.py drivers/tests/test_CMakeModelDriver.py drivers/tests/test_MakeModelDriver.py"
INSTALLC: 0 # Acts to exclude c and cpp
- platform: x64
PYTHON_VERSION: "3.7"
YGG_TEST_FLAGS: "--test-suite=types --languages c fortran"
install:
# Change code page to something closer to utf-8
- "chcp 65001"
- set PYTHONIOENCODING=utf-8
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "git submodule update --init --recursive"
# Set CZMQ/ZMQ install paths for use in install-czmq-windows.bat
- "if %INSTALLZMQ% == 1 SET ZMQINSTALLDIR=%APPVEYOR_BUILD_FOLDER%"
- "if %INSTALLZMQ% == 1 SET CONFIGURATION=Debug"
- "if %INSTALLZMQ% == 1 SET ZEROMQ_LIBRARY_DIR=%ZMQINSTALLDIR%\\build_libzmq\\lib\\%CONFIGURATION%"
- "if %INSTALLZMQ% == 1 SET CZMQ_LIBRARY_DIR=%ZMQINSTALLDIR%\\build_czmq\\%CONFIGURATION%"
- "if %INSTALLZMQ% == 1 SET ZEROMQ_INCLUDE_DIR=%ZMQINSTALLDIR%\\build_libzmq\\include"
- "if %INSTALLZMQ% == 1 SET CZMQ_INCLUDE_DIR=%ZMQINSTALLDIR%\\czmq\\include"
- "if %INSTALLZMQ% == 1 SET PATH=%PATH%;%ZEROMQ_LIBRARY_DIR%;%CZMQ_LIBRARY_DIR%;%ZEROMQ_INCLUDE_DIR%;%CZMQ_INCLUDE_DIR%"
- "if %INSTALLZMQ% == 1 echo PATH = %PATH%"
# Install R tools
- ps: If ($env:INSTALLR -eq 1) {
(new-object net.webclient).DownloadFile(
"https://cran.rstudio.com/bin/windows/Rtools/Rtools35.exe",
"C:\projects\rtools.exe")
}
- if "%INSTALLR%" == "1" C:\projects\rtools.exe /VERYSILENT /DIR=C:\Rtools
- if "%INSTALLR%" == "1" set PATH=c:\Rtools\bin;%PATH%
# Install & start RabbitMQ
- ps: If ($env:INSTALLRMQ -eq 1) { $webclient=New-Object System.Net.WebClient }
- if "%INSTALLRMQ%" == "1" ECHO Downloading Erlang...
- ps: If ($env:INSTALLRMQ -eq 1) { $webclient.DownloadFile("$env:erlang_download_url", "$env:erlang_exe_path") }
- if "%INSTALLRMQ%" == "1" ECHO Starting Erlang...
- if "%INSTALLRMQ%" == "1" start /B /WAIT %erlang_exe_path% /S /D=%erlang_home_dir%
- if "%INSTALLRMQ%" == "1" set ERLANG_HOME=%erlang_home_dir%
- if "%INSTALLRMQ%" == "1" ECHO Downloading RabbitMQ...
- ps: If ($env:INSTALLRMQ -eq 1) { $webclient.DownloadFile("$env:rabbitmq_installer_download_url", "$env:rabbitmq_installer_path") }
- if "%INSTALLRMQ%" == "1" ECHO Installing and starting RabbitMQ with default config...
- if "%INSTALLRMQ%" == "1" start /B /WAIT %rabbitmq_installer_path% /S
- ps: If ($env:INSTALLRMQ -eq 1) { (Get-Service -Name RabbitMQ).Status }
# Setup environment
# Currently conda is used reguardless of the installation method as
# that is how python is installed by appveyor
- "python utils\\setup_test_env.py env conda %PYTHON_VERSION% --env-name=test-environment"
# Activate environment (should be conda reguardless)
- "activate test-environment"
# Setup Visual C++ toolset
- if "%INSTALLC%" == "1" call "ci\\install-compilers.bat"
# Build and install
- "python utils\\setup_test_env.py install pip"
- "python utils\\setup_test_env.py verify"
- "echo %PATH%"
cache:
- '%LOCALAPPDATA%\pip\Cache -> setup.py'
- 'C:\Users\appveyor\.yggdrasil.cfg -> setup.py'
- libsodium -> ci\install-czmq_windows.bat
- libzmq -> ci\install-czmq_windows.bat
- build_libzmq -> ci\install-czmq_windows.bat
- czmq -> ci\install-czmq_windows.bat
- build_czmq -> ci\install-czmq_windows.bat
# Not a .NET project
build: false
test_script:
- "yggclean"
- "yggcompile"
- "yggtest --ci %YGG_TEST_FLAGS%"
- "%YGG_SECOND_TEST%"
# after_test:
# - "codecov"