forked from hoffstadt/DearPyGui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
233 lines (204 loc) · 8.29 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
version: 0.6.{build}
branches:
only:
- master
build:
verbosity: minimal
# Do not build on tags
skip_tags: true
environment:
pypi_password:
secure: tKYM1oHNwH7n+FO1exDSPzz76oio0iXtsfkZ0o7kuOY=
git_token:
secure: kRikZcYHTs5za4HnpeKZfM8dAD6emA68ZpDDkS+hvXa9IEPOAR8C7LCFnmKMTful
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
ARCH: "x64"
CONFIG: Release
PYVER: 36
PYLOC: "python"
PYSTACK: "3.6"
PYFULLVERSION: "3.6.12"
MACOS: "true"
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
ARCH: "x64"
CONFIG: Release
PYVER: 36
PYLOC: "python"
PYSTACK: "3.6"
PYFULLVERSION: "3.6.12"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
ARCH: "x64"
CONFIG: Release
PYVER: 36
PYLOC: "C:/Python36-x64/python.exe"
PYSTACK: "3.6"
PYFULLVERSION: "3.6.12"
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
ARCH: "x64"
CONFIG: Release
PYVER: 37
PYLOC: "python"
PYSTACK: "3.7"
PYFULLVERSION: "3.7.9"
MACOS: "true"
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
ARCH: "x64"
CONFIG: Release
PYVER: 37
PYLOC: "python"
PYSTACK: "3.7"
PYFULLVERSION: "3.7.9"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
ARCH: "x64"
CONFIG: Release
PYVER: 37
PYLOC: "C:/Python37-x64/python.exe"
PYSTACK: "3.7"
PYFULLVERSION: "3.7.9"
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
ARCH: "x64"
CONFIG: Release
PYVER: 38
PYLOC: "python"
PYSTACK: "3.8"
PYFULLVERSION: "3.8.6"
MACOS: "true"
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
ARCH: "x64"
CONFIG: Release
PYVER: 38
PYLOC: "python"
PYSTACK: "3.8"
PYFULLVERSION: "3.8.6"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
ARCH: "x64"
CONFIG: Release
PYVER: 38
PYLOC: "C:/Python38-x64/python.exe"
PYSTACK: "3.8"
PYFULLVERSION: "3.8.5"
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
ARCH: "x64"
CONFIG: Release
PYVER: 39
PYLOC: "python"
PYSTACK: "3.9"
PYFULLVERSION: "3.9.1"
MACOS: "true"
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
ARCH: "x64"
CONFIG: Release
PYVER: 39
PYLOC: "python"
PYSTACK: "3.9"
PYFULLVERSION: "3.9.1"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
ARCH: "x64"
CONFIG: Release
PYVER: 39
PYLOC: "C:/Python39-x64/python.exe"
PYSTACK: "3.9"
PYFULLVERSION: "3.9.0"
PYDOCRUN: "true"
matrix:
fast_finish: true
stack:
python %PYSTACK%
# actual build
build_script:
# Windows
- cmd: git submodule update --init --recursive ./Dependencies/imgui
- cmd: git submodule update --init --recursive ./Dependencies/freetype
- cmd: git submodule update --init --recursive ./Dependencies/ImGuiFileDialog
- cmd: mkdir cmake-build-release
- cmd: cd cmake-build-Release
- cmd: cmake .. -G "%GENERATOR%" -A "%ARCH%" -DMVDIST_ONLY=True -DMVPY_VERSION=%PYVER% -DMVDPG_VERSION=%APPVEYOR_BUILD_VERSION%
- cmd: cd ..
- cmd: cmake --build cmake-build-release --config "%CONFIG%"
# Ubuntu Only
- sh: |
if [ "$MACOS" = "" ]; then
sudo apt-get update
sudo apt-get install libglu1-mesa-dev libgl1-mesa-dev xorg-dev libxrandr-dev -y
sudo apt-get install libfreetype6-dev -y
sudo apt-get install libharfbuzz-dev -y
fi
# Ubuntu & MacOS
- sh: git submodule update --init --recursive ./Dependencies/imgui
- sh: git submodule update --init --recursive ./Dependencies/freetype
- sh: git submodule update --init --recursive ./Dependencies/ImGuiFileDialog
- sh: git submodule update --init --recursive ./Dependencies/glfw
- sh: mkdir cmake-build-release
- sh: cd cmake-build-release
- sh: |
if [ "$MACOS" = "" ]; then
cmake .. -DMVDIST_ONLY=True -DMVPY_VERSION=${PYVER} -DMVDPG_VERSION=${APPVEYOR_BUILD_VERSION} -DBUILD_SHARED_LIBS:BOOL=true
else
cmake .. -DMVDIST_ONLY=True -DMVPY_VERSION=${PYVER} -DMVDPG_VERSION=${APPVEYOR_BUILD_VERSION}
fi
- sh: cd ..
- sh: cmake --build cmake-build-release --config "${CONFIG}"
on_success:
- cd Distribution
# Windows
- cmd: call %PYLOC% -m pip install --upgrade pip
- cmd: call %PYLOC% BuildPythonWheel.py C:\projects\dearpygui\cmake-build-release\DearPyGui\Release\core.pyd "%APPVEYOR_BUILD_VERSION%"
- cmd: call %PYLOC% -m pip install twine
- cmd: call %PYLOC% -m pip install wheel
- cmd: call %PYLOC% -m setup bdist_wheel --plat-name win_amd64 --dist-dir C:/projects/dearpygui/dist
- cmd: if "%APPVEYOR_REPO_COMMIT_MESSAGE:(test)=%" neq "%APPVEYOR_REPO_COMMIT_MESSAGE%" call %PYLOC% -m twine upload --repository testpypi C:/projects/dearpygui/dist/* -u RaylockLLC -p %pypi_password% --skip-existing
- cmd: if "%APPVEYOR_REPO_COMMIT_MESSAGE:(release)=%" neq "%APPVEYOR_REPO_COMMIT_MESSAGE%" call %PYLOC% -m twine upload --repository testpypi C:/projects/dearpygui/dist/* -u RaylockLLC -p %pypi_password% --skip-existing
- cmd: if "%APPVEYOR_REPO_COMMIT_MESSAGE:(release)=%" neq "%APPVEYOR_REPO_COMMIT_MESSAGE%" call %PYLOC% -m twine upload C:/projects/dearpygui/dist/* -u RaylockLLC -p %pypi_password% --skip-existing
# deploy docs
- ps: |
if ( $env:APPVEYOR_REPO_COMMIT_MESSAGE -like "*(release)*" )
{
if ( $env:PYDOCRUN -like "*true*" )
{
cd ..
git checkout gh-pages
Add-Content -Path "$HOME\.git-credentials" -Value "https://$($env:git_token):[email protected]`n" -NoNewline
C:\Python39-x64\python.exe -m pip install C:\projects\dearpygui\dist\dearpygui-$env:APPVEYOR_BUILD_VERSION-cp39-cp39-win_amd64.whl
C:\Python39-x64\python.exe -m pip install pdoc3
C:\Python39-x64\python.exe -m pdoc --html dearpygui -f
C:\Python39-x64\python.exe html_script.py
git config --global credential.helper store
git config --global user.email "[email protected]"
git config --global user.name "Jonathan Hoffstadt"
git commit -a -m "Update Docs for $env:APPVEYOR_BUILD_VERSION"
git push origin gh-pages -q
}
}
# Ubuntu & MacOS
- sh: |
${PYLOC} -m pip install --upgrade pip
if [ "$MACOS" = "" ]; then
${PYLOC} BuildPythonWheel.py /home/appveyor/projects/dearpygui/cmake-build-release/DearPyGui/core.so ${APPVEYOR_BUILD_VERSION}
${PYLOC} -m pip install twine --upgrade
${PYLOC} -m pip install wheel
${PYLOC} -m setup bdist_wheel --plat-name manylinux1_x86_64 --dist-dir /home/appveyor/projects/dearpygui/dist
if [[ "${APPVEYOR_REPO_COMMIT_MESSAGE}" == *"(test)"* ]]; then
${PYLOC} -m twine upload --repository testpypi /home/appveyor/projects/dearpygui/dist/* -u RaylockLLC -p ${pypi_password} --skip-existing
fi
if [[ "${APPVEYOR_REPO_COMMIT_MESSAGE}" == *"(release)"* ]]; then
${PYLOC} -m twine upload --repository testpypi /home/appveyor/projects/dearpygui/dist/* -u RaylockLLC -p ${pypi_password} --skip-existing
${PYLOC} -m twine upload /home/appveyor/projects/dearpygui/dist/* -u RaylockLLC -p ${pypi_password} --skip-existing
fi
else
${PYLOC} BuildPythonWheel.py /Users/appveyor/projects/dearpygui/cmake-build-release/DearPyGui/core.so ${APPVEYOR_BUILD_VERSION}
${PYLOC} -m pip install twine --upgrade
${PYLOC} -m pip install wheel
${PYLOC} -m setup bdist_wheel --plat-name macosx-10.6-x86_64 --dist-dir /Users/appveyor/projects/dearpygui/dist
if [[ "${APPVEYOR_REPO_COMMIT_MESSAGE}" == *"(test)"* ]]; then
${PYLOC} -m twine upload --repository testpypi /Users/appveyor/projects/dearpygui/dist/* -u RaylockLLC -p ${pypi_password} --skip-existing
fi
if [[ "${APPVEYOR_REPO_COMMIT_MESSAGE}" == *"(release)"* ]]; then
${PYLOC} -m twine upload --repository testpypi /Users/appveyor/projects/dearpygui/dist/* -u RaylockLLC -p ${pypi_password} --skip-existing
${PYLOC} -m twine upload /Users/appveyor/projects/dearpygui/dist/* -u RaylockLLC -p ${pypi_password} --skip-existing
fi
fi