forked from KinoxKlark/pyimgui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
198 lines (161 loc) · 4.97 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
environment:
global:
DROPBOX_TOKEN:
secure: UO64ZwJpnDQe5c7xArS14TLnqUi7TR76tJLpZVxo5lV8GJXEkDBEOjFsmaEVFQ/rvqCmMkECYE3RNWhFO/DE0o3Vh/6FCOiO2ZAQsKkOIGk=
matrix:
# win builds
- PYTHON: "C:\\Python27"
PYTHON_ARCH: 32
MSVC_VERSION: "Visual Studio 10"
job_group: "windows"
- PYTHON: "C:\\Python33"
PYTHON_ARCH: 32
MSVC_VERSION: "Visual Studio 10"
job_group: "windows"
- PYTHON: "C:\\Python34"
PYTHON_ARCH: 32
MSVC_VERSION: "Visual Studio 10"
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"
job_group: "windows"
- PYTHON: "C:\\Python33-x64"
PYTHON_ARCH: 64
MSVC_VERSION: "Visual Studio 10 Win64"
DISTUTILS_USE_SDK: "1"
job_group: "windows"
- PYTHON: "C:\\Python34-x64"
PYTHON_ARCH: 64
MSVC_VERSION: "Visual Studio 10 Win64"
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
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\*