forked from pyimgui/pyimgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
327 lines (319 loc) · 8.88 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
#environment:
# global:
# DROPBOX_TOKEN:
# secure: a 7HvvAItUFtApW6GmY1HW4n3KPqR5/2KMt54YOap4ShTzbOPCkF05vOox8aiuQO2bnkvtax9PCOaEzVR15tYxeFH8qBaxHMCp7nU9AyUpk=
#
# matrix:
#
# # linux builds
# #- DOCKER_IMAGE: "quay.io/pypa/manylinux1_x86_64"
# # GCC_VERSION: 9
# # services: docker
# # job_group: "linux"
# # appveyor_build_worker_image: ubuntu
#
# #- DOCKER_IMAGE: "quay.io/pypa/manylinux1_i686"
# # PRE_CMD: "linux32"
# # GCC_VERSION: 9
# # services: docker
# # job_group: "linux"
# # appveyor_build_worker_image: ubuntu
#
# - image: "Ubuntu"
# appveyor_build_worker_image: Ubuntu
# APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
# job_group: "linux"
#
# # win builds
# - PYTHON: "C:\\Python27"
# PYTHON_ARCH: 32
# MSVC_VERSION: "Visual Studio 10"
# appveyor_build_worker_image: Visual Studio 2015
# job_group: "windows"
#
# - PYTHON: "C:\\Python33"
# PYTHON_ARCH: 32
# MSVC_VERSION: "Visual Studio 10"
# appveyor_build_worker_image: Visual Studio 2015
# job_group: "windows"
#
# - PYTHON: "C:\\Python34"
# PYTHON_ARCH: 32
# MSVC_VERSION: "Visual Studio 10"
# appveyor_build_worker_image: Visual Studio 2015
# job_group: "windows"
#
# - PYTHON: "C:\\Python35"
# PYTHON_ARCH: 32
# MSVC_VERSION: "Visual Studio 14"
# job_group: "windows"
#
# - PYTHON: "C:\\Python36"
# PYTHON_ARCH: 32
# MSVC_VERSION: "Visual Studio 14"
# job_group: "windows"
#
# - PYTHON: "C:\\Python37"
# PYTHON_ARCH: 32
# MSVC_VERSION: "Visual Studio 14"
# job_group: "windows"
#
# - PYTHON: "C:\\Python38"
# PYTHON_ARCH: 32
# MSVC_VERSION: "Visual Studio 14"
# job_group: "windows"
#
# - PYTHON: "C:\\Python39"
# PYTHON_ARCH: 32
# MSVC_VERSION: "Visual Studio 18"
# appveyor_build_worker_image: Visual Studio 2019
# job_group: "windows"
#
#
# # x64 builds
# - PYTHON: "C:\\Python27-x64"
# PYTHON_ARCH: 64
# MSVC_VERSION: "Visual Studio 10 Win64"
# appveyor_build_worker_image: Visual Studio 2015
# job_group: "windows"
#
# - PYTHON: "C:\\Python33-x64"
# PYTHON_ARCH: 64
# MSVC_VERSION: "Visual Studio 10 Win64"
# appveyor_build_worker_image: Visual Studio 2015
# DISTUTILS_USE_SDK: "1"
# job_group: "windows"
#
# - PYTHON: "C:\\Python34-x64"
# PYTHON_ARCH: 64
# MSVC_VERSION: "Visual Studio 10 Win64"
# appveyor_build_worker_image: Visual Studio 2015
# DISTUTILS_USE_SDK: "1"
# job_group: "windows"
#
# - PYTHON: "C:\\Python35-x64"
# PYTHON_ARCH: 64
# MSVC_VERSION: "Visual Studio 14 Win64"
# job_group: "windows"
#
# - PYTHON: "C:\\Python36-x64"
# PYTHON_ARCH: 64
# MSVC_VERSION: "Visual Studio 14 Win64"
# job_group: "windows"
#
# - PYTHON: "C:\\Python37-x64"
# PYTHON_ARCH: 64
# MSVC_VERSION: "Visual Studio 14 Win64"
# job_group: "windows"
#
# - PYTHON: "C:\\Python38-x64"
# PYTHON_ARCH: 64
# MSVC_VERSION: "Visual Studio 14 Win64"
# job_group: "windows"
#
# - PYTHON: "C:\\Python39-x64"
# PYTHON_ARCH: 64
# MSVC_VERSION: "Visual Studio 18 Win64"
# appveyor_build_worker_image: Visual Studio 2019
# job_group: "windows"
#
# # osx builds
# - PY_VERSION: 2.7
# job_group: "macos"
# appveyor_build_worker_image: macos
#
# - PY_VERSION: 3.4
# job_group: "macos"
# appveyor_build_worker_image: macos
#
# - PY_VERSION: 3.5
# job_group: "macos"
# appveyor_build_worker_image: macos
#
# - PY_VERSION: 3.6
# job_group: "macos"
# appveyor_build_worker_image: macos
#
# - PY_VERSION: 3.7
# job_group: "macos"
# appveyor_build_worker_image: macos
#
# - PY_VERSION: 3.8
# job_group: "macos"
# appveyor_build_worker_image: macos
#
# - PY_VERSION: 3.9
# job_group: "macos"
# appveyor_build_worker_image: macos
#
#
#for:
# - matrix:
# only:
# - job_group: windows
#
# init:
# - "ECHO %PYTHON% %PYTHON_ARCH% %MSVC_VERSION%"
# - "%PYTHON%\\python.exe --version"
#
# install:
# # python requirements needed to create distribution
# - "%PYTHON%\\python.exe -m pip install -U wheel pip"
# # get latest version of all submodules
# - "git submodule update --init --recursive"
# - "%PYTHON%\\python.exe -m pip install -U setuptools"
# - "%PYTHON%\\python.exe -m pip install -r doc/requirements-test.txt"
#
# build: off
#
# build_script:
# - "ci\\appveyor_build.cmd %PYTHON%/python.exe -m pip wheel . -w dist"
# - "%PYTHON%/python.exe -m pip install -e ."
# - "%PYTHON%/python.exe -m pytest -v --color=yes"
#
# - matrix:
# only:
# - job_group: macos
#
# init:
# - sh: |
# set -x
# if [[ "${PY_VERSION}" == "3.4" ]]; then
# export HOMEBREW_NO_AUTO_UPDATE=1
# brew update
# brew install pyenv
#
# pyenv install --skip-existing $PY_VERSION
# pyenv local $PY_VERSION
# eval "$(pyenv init -)"
# else
# source ~/venv${PY_VERSION}/bin/activate
# fi
# python --version
#
# install:
# # python requirements needed to create distribution
# - sh: |
# python --version
# python -m pip install -U wheel pip
# git submodule update --init --recursive
# python -m pip install -U setuptools
# python -m pip install -r doc/requirements-test.txt
#
# build_script:
# # todo: install from wheel to avoid double compilation
# - sh: |
# python -m pip wheel . -w dist
# ls dist
# python -m pip install -e .
# PYTHONDEVMODE=1 python -m pytest -v --color=yes
#
# - matrix:
# only:
# - job_group: linux
#
# #init:
# # - sh: |
# # set -e
# #
# # if [[ $DOCKER_IMAGE ]]; then
# # docker pull $DOCKER_IMAGE
# # fi
#
# #install:
# # # python requirements needed to create distribution
# # - sh: |
# # python --version
# # git submodule update --init --recursive
#
# #build_script:
# # # todo: install from wheel to avoid double compilation
# # - sh: |
# # set -e
# #
# # if [[ $DOCKER_IMAGE ]]; then
# # # if docker image is set then run actual Linux build inside of docker
# # docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/ci/docker_build_wheels.sh
# #
# # else
# # # note: if it is not a docker-based build then just run coverage on python3
# # # and do not create wheels (they will not be uploaded).
# # python3 --version
# # python3 -m pip freeze
# #
# # python3 -m pip install -r doc/requirements-test.txt
# # python3 -m pip install coverage
# # python3 -m pip install coveralls
# #
# # _CYTHONIZE_WITH_COVERAGE=1 pip install -e .
# # PYTHONDEVMODE=1 python3 -m coverage run --source imgui -m pytest -v --color=yes
# # python3 -m coverage report
# # coveralls
# # fi
#
# stack: python 3.7
#
# init:
# - cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
#
# install:
# # python requirements needed to create distribution
# - sh: |
# python --version
# git submodule update --init --recursive
# python -m pip install cibuildwheel==2.2.0
#
# # TODO: We will remove the --platform parameter when going full cibuildwheel
# build_script: python -m cibuildwheel --output-dir dist --platform linux
#
# artifacts:
# - path: "dist\\*.whl"
# name: Wheels
#
#on_success:
# - ps: |
# if ($env:APPVEYOR_REPO_BRANCH -eq "master")
# {
# python -m pip install dropbox
# python ci/dropbox_upload.py $(python setup.py --version)
# }
# else
# {
# Write-Host "Not a master branch. Upload skipped."
# }
#
#artifacts:
# - path: dist\*
#
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
APPVEYOR_JOB_NAME: "python37-x64-vs2015"
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"
stack: python 3.7
init:
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
install: |
python --version
git submodule update --init --recursive
python -m pip install cibuildwheel==2.1.3
build_script: python -m cibuildwheel --output-dir dist
on_success:
- ps: |
if ($env:APPVEYOR_REPO_BRANCH -eq "master")
{
python -m pip install dropbox
python ci/dropbox_upload.py $(python setup.py --version)
}
else
{
Write-Host "Not a master branch. Upload skipped."
}
artifacts:
- path: "dist\\*.whl"
name: Wheels
matrix:
fast_finish: true