This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.appveyor.yml
226 lines (205 loc) · 8.25 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
version: '3.2.0.{build}'
shallow_clone: true
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/6f33fb3550cb96501f64
on_build_success: true
on_build_failure: true
on_build_status_changed: true
environment:
ATK_ROOT: C:\projects\AudioTK
ATK_OUT: C:\projects\ATK
FFTW_ROOT: C:\projects\fftw
matrix:
#### VS 2017
### Debug build
- MY_NAME: VS 2017 Debug
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BOOST_ROOT: C:/Libraries/boost_1_69_0
FFTW_NAME: fftw-3.3.5-dll64.zip
BITS: 64
MSVC_PLATFORM: amd64
SHORT_MSVC_PLATFORM: x64
COMPILER: Visual Studio 15 2017
OUTPUT: dynamic-x64
ADDITONAL_CMAKE_FLAGS: "-A x64 -DENABLE_PYTHON=OFF"
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.1
BUILD_CONFIGURATION: Debug
### static runtime
- MY_NAME: VS 2017 Release Static 32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BOOST_ROOT: C:/Libraries/boost_1_69_0
FFTW_NAME: fftw-3.3.5-dll32.zip
BITS: 32
MSVC_PLATFORM: x86
SHORT_MSVC_PLATFORM: x86
COMPILER: Visual Studio 15 2017
OUTPUT: static-x86
ADDITONAL_CMAKE_FLAGS: "-A Win32 -DENABLE_PYTHON=OFF -DENABLE_SIMD=OFF -DMSVC_RUNTIME=Static -DENABLE_SHARED_LIBRARIES=OFF -DENABLE_TESTS=OFF"
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.1
BUILD_CONFIGURATION: Release
- MY_NAME: VS 2017 Release Static 64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BOOST_ROOT: C:/Libraries/boost_1_69_0
FFTW_NAME: fftw-3.3.5-dll64.zip
BITS: 64
MSVC_PLATFORM: amd64
SHORT_MSVC_PLATFORM: x64
COMPILER: Visual Studio 15 2017
OUTPUT: static-x64
ADDITONAL_CMAKE_FLAGS: "-A x64 -DENABLE_PYTHON=OFF -DMSVC_RUNTIME=Static -DENABLE_SHARED_LIBRARIES=OFF -DENABLE_TESTS=OFF"
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.1
BUILD_CONFIGURATION: Release
- MY_NAME: VS 2017 Release Shared 32 Python 3
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BOOST_ROOT: C:/Libraries/boost_1_69_0
FFTW_NAME: fftw-3.3.5-dll32.zip
BITS: 32
MSVC_PLATFORM: x86
SHORT_MSVC_PLATFORM: x86
COMPILER: Visual Studio 15 2017
OUTPUT: dynamic-x86
ADDITONAL_CMAKE_FLAGS: "-A Win32 -DENABLE_SIMD=OFF -DENABLE_PYTHON=ON -DDISABLE_PYTHON_TESTS=ON -DPYTHON_EXECUTABLE=C:\\Python37\\python.exe"
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.1
PYTHON: C:\\Python37
PYTHON_VERSION: 3.7
BUILD_CONFIGURATION: Release
- MY_NAME: VS 2017 Release Shared 64 Python 3
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BOOST_ROOT: C:/Libraries/boost_1_69_0
FFTW_NAME: fftw-3.3.5-dll64.zip
BITS: 64
MSVC_PLATFORM: amd64
SHORT_MSVC_PLATFORM: x64
COMPILER: Visual Studio 15 2017
OUTPUT: dynamic-x64
ADDITONAL_CMAKE_FLAGS: "-A x64 -DENABLE_PYTHON=ON -DDISABLE_PYTHON_TESTS=ON -DPYTHON_EXECUTABLE=C:\\Python37-x64\\python.exe"
VSINSTALL: "Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.1
PYTHON: C:\\Python37-x64
PYTHON_VERSION: 3.7
BUILD_CONFIGURATION: Release
#### VS 2019
### Debug build
- MY_NAME: VS 2019 Debug
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
BOOST_ROOT: C:/Libraries/boost_1_73_0
FFTW_NAME: fftw-3.3.5-dll64.zip
BITS: 64
MSVC_PLATFORM: amd64
SHORT_MSVC_PLATFORM: x64
COMPILER: Visual Studio 16 2019
OUTPUT: dynamic-x64
ADDITONAL_CMAKE_FLAGS: "-A x64 -DENABLE_PYTHON=OFF"
VSINSTALL: "Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.2
PYTHON_VERSION: none
BUILD_CONFIGURATION: Debug
- MY_NAME: VS 2019 Release Static 32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
BOOST_ROOT: C:/Libraries/boost_1_73_0
FFTW_NAME: fftw-3.3.5-dll32.zip
BITS: 32
MSVC_PLATFORM: amd64
SHORT_MSVC_PLATFORM: x86
COMPILER: Visual Studio 16 2019
OUTPUT: static-x64
ADDITONAL_CMAKE_FLAGS: "-A Win32 -DENABLE_PYTHON=OFF -DMSVC_RUNTIME=Static -DENABLE_SHARED_LIBRARIES=OFF -DENABLE_TESTS=OFF"
VSINSTALL: "Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.2
BUILD_CONFIGURATION: Release
- MY_NAME: VS 2019 Release Static 64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
BOOST_ROOT: C:/Libraries/boost_1_73_0
FFTW_NAME: fftw-3.3.5-dll64.zip
BITS: 64
MSVC_PLATFORM: amd64
SHORT_MSVC_PLATFORM: x64
COMPILER: Visual Studio 16 2019
OUTPUT: static-x64
ADDITONAL_CMAKE_FLAGS: "-A x64 -DENABLE_PYTHON=OFF -DMSVC_RUNTIME=Static -DENABLE_SHARED_LIBRARIES=OFF -DENABLE_TESTS=OFF"
VSINSTALL: "Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.2
BUILD_CONFIGURATION: Release
- MY_NAME: VS 2019 Release Shared 32 Python 3
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
BOOST_ROOT: C:/Libraries/boost_1_73_0
FFTW_NAME: fftw-3.3.5-dll32.zip
BITS: 32
MSVC_PLATFORM: amd64
SHORT_MSVC_PLATFORM: x86
COMPILER: Visual Studio 16 2019
OUTPUT: dynamic-x86
ADDITONAL_CMAKE_FLAGS: "-A win32 -DENABLE_PYTHON=ON -DDISABLE_PYTHON_TESTS=ON -DPYTHON_EXECUTABLE=C:\\Python38\\python.exe"
VSINSTALL: "Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.2
PYTHON: C:\\Python38
PYTHON_VERSION: 3.8
BUILD_CONFIGURATION: Release
- MY_NAME: VS 2019 Release Shared 64 Python 3
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
BOOST_ROOT: C:/Libraries/boost_1_73_0
FFTW_NAME: fftw-3.3.5-dll64.zip
BITS: 64
MSVC_PLATFORM: amd64
SHORT_MSVC_PLATFORM: x64
COMPILER: Visual Studio 16 2019
OUTPUT: dynamic-x64
ADDITONAL_CMAKE_FLAGS: "-A x64 -DENABLE_PYTHON=ON -DDISABLE_PYTHON_TESTS=ON -DPYTHON_EXECUTABLE=C:\\Python38-x64\\python.exe"
VSINSTALL: "Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build"
MSVC_VERSION: msvc-14.2
PYTHON: C:\\Python38-x64
PYTHON_VERSION: 3.8
BUILD_CONFIGURATION: Release
matrix:
fast_finish: true
allow_failures:
- COMPILER: Visual Studio 16 2019
init:
- cmake --version
- C:\"Program Files (x86)"\"%VSINSTALL%"\vcvarsall.bat %MSVC_PLATFORM%
before_build:
- mkdir %FFTW_ROOT%
- cd %FFTW_ROOT%
- ps: wget ftp://ftp.fftw.org/pub/fftw/$env:FFTW_NAME -OutFile $env:FFTW_NAME
- 7z x %FFTW_NAME%
- ps: lib /machine:$env:SHORT_MSVC_PLATFORM /def:libfftw3-3.def
- ps: lib /machine:$env:SHORT_MSVC_PLATFORM /def:libfftw3f-3.def
- cd %ATK_ROOT%
- mkdir 3rdParty
- git clone https://github.com/mbrucher/pybind11 3rdParty\pybind11
- git clone https://github.com/mbrucher/GSL 3rdParty\gsl
- git clone https://github.com/mbrucher/eigen-git-mirror 3rdParty\eigen
- mkdir build
- cd build
- cmake -G "%COMPILER%" %ADDITONAL_CMAKE_FLAGS% -DENABLE_GPL=ON -DBOOST_ROOT=%BOOST_ROOT% -DCMAKE_INSTALL_PREFIX=%ATK_OUT% -DFFTW_INCLUDES=%FFTW_ROOT% -DFFTW_LIBRARY_FFTW3=%FFTW_ROOT%\libfftw3-3.lib -DFFTW_LIBRARY_FFTW3F=%FFTW_ROOT%\libfftw3f-3.lib -DENABLE_STATIC_LIBRARIES=ON ..
build_script:
- msbuild INSTALL.vcxproj /property:Configuration=%BUILD_CONFIGURATION%
after_build:
- cd %ATK_OUT%
- ps: |
if($PYTHON_VERSION) {
7z a ${env:ATK_ROOT}\AudioTK.${env:MSVC_VERSION}.py${env:PYTHON_VERSION}.${env:OUTPUT}-${env:BUILD_CONFIGURATION}.zip * -tzip
} else {
7z a ${env:ATK_ROOT}\AudioTK.${env:MSVC_VERSION}.${env:OUTPUT}-${env:BUILD_CONFIGURATION}.zip * -tzip
}
test_script:
- set PATH=%ATK_OUT%\bin;%BOOST_ROOT%\lib%BITS%-%MSVC_VERSION%;%FFTW_ROOT%;%PATH%
- set PYTHONPATH=%ATK_OUT%\lib\site-packages:%PYTHONPATH%
- cd %ATK_ROOT%\build
- set CTEST_OUTPUT_ON_FAILURE=True
- msbuild RUN_TESTS.vcxproj /property:Configuration=%BUILD_CONFIGURATION%
artifacts:
- path: AudioTK.*.zip
name: package
deploy:
provider: GitHub
description: 'Audio Toolkit files'
auth_token: ${GITHUB_OAUTH_TOKEN}
artifact: package
on:
appveyor_repo_tag: true