1
1
environment :
2
2
nuget_token :
3
- secure : HYYxq3O5WWQ5cjS9AMu1OxtPtevYd1f8pglgXUCrb9uK8T6C+P8cUgfCpiX/Z2YJ
3
+ secure : l8kGPdWSs3RTcW6B+mgcT8ByCdVvXx6HbWPNd8nnqoUDhku8g507tpxla7LUPDOM
4
4
PYPI_TOKEN :
5
5
secure : VHuZiUWgTqTciKE2nsv/LoLP8ouDmPjIMgnsuPtr8vWz0URFT4+aVTsCC6xyAD0q2VD/Uw09mz3r7eEfAKdZDSdswAwWiFqmXdQZfvvRZNg19Pi8iHBARXUOgYM7kCDeWBisgjR349kN6UhSIyq24nMukdtrum1RutN4ATNH9yxIPIEZ6ueIM4z3y7p0lwxGlY1m2CE7RpYqlgdqpS5BkOLhKILqeuHdv5T68d3k2fydAWW9T72BtSahdBsezBD9pWZgs0m5JV1MRnWX+S7ENA==
6
6
matrix :
@@ -10,40 +10,83 @@ environment:
10
10
VisualStudioVersion : 9.0
11
11
platform : Win32
12
12
configuration : Release
13
+ PYTHON_PATH : " C:\\ Python37"
13
14
- TARGET : vs2010
14
15
BUILD_ENVIRONMENT : msbuild
15
16
APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2013
16
17
VisualStudioVersion : 10.0
17
18
platform : Win32
18
- configuration : VSDebug
19
+ configuration : Release
20
+ PYTHON_PATH : " C:\\ Python37"
19
21
- TARGET : vs2012
20
22
BUILD_ENVIRONMENT : msbuild
21
23
APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2013
22
24
VisualStudioVersion : 11.0
23
- platform : x64
25
+ platform : Win32
24
26
configuration : Release
27
+ PYTHON_PATH : " C:\\ Python37"
25
28
- TARGET : vs2013
26
29
BUILD_ENVIRONMENT : msbuild
27
30
APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2013
28
31
VisualStudioVersion : 12.0
29
32
platform : Win32
30
33
configuration : Release
34
+ PYTHON_PATH : " C:\\ Python37"
31
35
- TARGET : vs2015
32
36
BUILD_ENVIRONMENT : msbuild
33
37
APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
34
38
VisualStudioVersion : 14.0
35
39
platform : Win32
36
40
configuration : Release
41
+ PYTHON_PATH : " C:\\ Python38"
37
42
- TARGET : vs2017
38
43
BUILD_ENVIRONMENT : msbuild
39
44
APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
40
45
VisualStudioVersion : 15.0
46
+ platform : Win32
41
47
configuration : Release
48
+ PYTHON_PATH : " C:\\ Python38"
42
49
- TARGET : vs2019
43
50
BUILD_ENVIRONMENT : msbuild
44
51
APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
45
52
VisualStudioVersion : 16.0
53
+ platform : Win32
54
+ configuration : Release
55
+ PYTHON_PATH : " C:\\ Python311"
56
+ - TARGET : vs2022
57
+ BUILD_ENVIRONMENT : msbuild
58
+ APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
59
+ VisualStudioVersion : 17.0
60
+ platform : Win32
46
61
configuration : Release
62
+ PYTHON_PATH : " C:\\ Python311"
63
+ - TARGET : vs2022-vsdebug
64
+ BUILD_ENVIRONMENT : msbuild
65
+ APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
66
+ VisualStudioVersion : 17.0
67
+ platform : Win32
68
+ configuration : VSDebug
69
+ PYTHON_PATH : " C:\\ Python311"
70
+ - TARGET : vs2022-x64
71
+ BUILD_ENVIRONMENT : msbuild
72
+ APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
73
+ VisualStudioVersion : 17.0
74
+ platform : x64
75
+ configuration : Release
76
+ PYTHON_PATH : " C:\\ Python311"
77
+ - TARGET : vs2022-python
78
+ BUILD_ENVIRONMENT : msbuild
79
+ APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
80
+ VisualStudioVersion : 17.0
81
+ platform : x64
82
+ configuration : Release
83
+ PYTHON_PATH : " C:\\ Python311-x64"
84
+ - TARGET : vs2022-nuget
85
+ BUILD_ENVIRONMENT : msbuild
86
+ APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
87
+ VisualStudioVersion : 17.0
88
+ configuration : Release
89
+ PYTHON_PATH : " C:\\ Python311"
47
90
- TARGET : macos-x64-clang
48
91
BUILD_ENVIRONMENT : xcode
49
92
APPVEYOR_BUILD_WORKER_IMAGE : macos-monterey
@@ -73,14 +116,14 @@ environment:
73
116
CFLAGS : " -I/usr/local/include"
74
117
LDFLAGS : " -L/usr/local/lib"
75
118
CONFIGURE_OPTIONS : " --disable-dependency-tracking --prefix=/usr/local --enable-python --with-pyprefix"
76
- - TARGET : python310
119
+ - TARGET : python311
77
120
BUILD_ENVIRONMENT : python
78
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
79
- PYTHON : " C:\\ Python310 \\ python.exe"
80
- - TARGET : python310 -x64
121
+ APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
122
+ PYTHON : " C:\\ Python311 \\ python.exe"
123
+ - TARGET : python311 -x64
81
124
BUILD_ENVIRONMENT : python
82
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
83
- PYTHON : " C:\\ Python310 -x64\\ python.exe"
125
+ APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
126
+ PYTHON : " C:\\ Python311 -x64\\ python.exe"
84
127
- TARGET : macos-tox-py37
85
128
BUILD_ENVIRONMENT : python-tox
86
129
APPVEYOR_BUILD_WORKER_IMAGE : macos-monterey
@@ -152,16 +195,15 @@ environment:
152
195
CONFIGURE_OPTIONS : " --enable-static-executables"
153
196
154
197
install :
155
- - cmd : git clone https://github.com/codecov/codecov-bash.git ..\codecov-bash
156
198
- cmd : if [%BUILD_ENVIRONMENT%]==[msbuild] (
157
199
git clone https://github.com/libyal/vstools.git ..\vstools )
158
200
- ps : If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
159
201
.\synczlib.ps1 }
160
202
- ps : If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
161
- If (($env:TARGET -eq "vs2017") -Or ($env:TARGET -eq "vs2019")) {
162
- .\syncdokan.ps1 }
163
- Else {
203
+ If ( ( "vs2008", "vs2010", "vs2012", "vs2013", "vs2015" ).Contains( $env:TARGET ) ) {
164
204
.\syncdokan.ps1 -UseLegacyVersion }
205
+ Else {
206
+ .\syncdokan.ps1 }
165
207
}
166
208
- cmd : if [%TARGET%]==[vs2010] (
167
209
pushd ..\dokan &&
@@ -192,14 +234,14 @@ install:
192
234
ren vs2015 msvscpp &&
193
235
popd )
194
236
- ps : If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
195
- If (($env:TARGET -eq "vs2017") -Or ($env:TARGET -eq "vs2019")) {
237
+ If ( ( "vs2008", "vs2010", "vs2012", "vs2013", "vs2015" ).Contains( $env:TARGET ) ) {
238
+ .\builddokan.ps1 -UseLegacyVersion }
239
+ Else {
196
240
$Configuration = $env:CONFIGURATION;
197
241
If (${Configuration} -eq "VSDebug") {
198
242
$Configuration = "Debug" }
199
243
.\builddokan.ps1 -Configuration ${Configuration} -Platform "Win32";
200
244
.\builddokan.ps1 -Configuration ${Configuration} -Platform "x64"; }
201
- Else {
202
- .\builddokan.ps1 -UseLegacyVersion }
203
245
}
204
246
- sh : if test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode"; then brew update -q; fi
205
247
- sh : if test ${BUILD_ENVIRONMENT} = "python-tox" || test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q gettext gnu-sed || true; fi
@@ -212,37 +254,35 @@ install:
212
254
C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s http://cygwin.mirror.constant.com -P gettext-devel -P wget -P zlib-devel -P python3-devel )
213
255
- cmd : if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
214
256
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gcc gettext-devel libtool make msys/zlib-devel )
257
+ - ps : If ( ( "cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization" ).Contains( $env:TARGET ) ) {
258
+ $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\codecov.exe }
215
259
216
260
build_script :
217
261
- ps : If ($env:BUILD_ENVIRONMENT -eq "msbuild" -or ($env:BUILD_ENVIRONMENT -eq "python" -and $isWindows)) {
218
262
.\synclibs.ps1;
219
263
.\autogen.ps1 }
220
264
- ps : If ($env:TARGET -eq "vs2008") {
221
- .\build.ps1 -VisualStudioVersion 2008 -VSToolsOptions "" }
222
- - ps : If ($env:TARGET -eq "vs2010") {
223
- .\build.ps1 -VisualStudioVersion 2010 -VSToolsOptions "--no-python-dll" }
224
- - ps : If ($env:TARGET -eq "vs2012") {
225
- .\build.ps1 -VisualStudioVersion 2012 -VSToolsOptions "--extend-with-x64 --python-path C:\\Python27-x64" }
226
- - ps : If ($env:TARGET -eq "vs2013") {
227
- .\build.ps1 -VisualStudioVersion 2013 -VSToolsOptions "" }
228
- - ps : If ($env:TARGET -eq "vs2015") {
229
- .\build.ps1 -VisualStudioVersion 2015 -VSToolsOptions "" }
230
- - ps : If ($env:TARGET -eq "vs2017") {
231
- .\build.ps1 -VisualStudioVersion 2017 -Platform Win32 -VSToolsOptions "--extend-with-x64 --no-python-dll --with-dokany";
232
- .\build.ps1 -VisualStudioVersion 2017 -Platform x64 -VSToolsOptions "--extend-with-x64 --no-python-dll --with-dokany" }
233
- - cmd : if [%TARGET%]==[vs2017] (
265
+ .\build.ps1 -VisualStudioVersion 2008 -PythonPath $env:PYTHON_PATH -VSToolsOptions "--no-python-dll" }
266
+ - ps : If ( ( "vs2010", "vs2012", "vs2013", "vs2015" ).Contains( $env:TARGET ) ) {
267
+ .\build.ps1 -VisualStudioVersion $env:TARGET.Substring(2, 4) -Configuration $env:CONFIGURATION -Platform $env:PLATFORM -PythonPath $env:PYTHON_PATH -VSToolsOptions "--extend-with-x64 --no-python-dll" }
268
+ - ps : If ( ( "vs2017", "vs2019", "vs2022", "vs2022-vsdebug", "vs2022-x64" ).Contains( $env:TARGET ) ) {
269
+ .\build.ps1 -VisualStudioVersion $env:TARGET.Substring(2, 4) -Configuration $env:CONFIGURATION -Platform $env:PLATFORM -PythonPath $env:PYTHON_PATH -VSToolsOptions "--extend-with-x64 --no-python-dll --with-dokany" }
270
+ - ps : If ($env:TARGET -eq "vs2022-python") {
271
+ .\build.ps1 -VisualStudioVersion $env:TARGET.Substring(2, 4) -Configuration $env:CONFIGURATION -Platform $env:PLATFORM -PythonPath $env:PYTHON_PATH -VSToolsOptions "--extend-with-x64 --python-path $env:PYTHON_PATH --with-dokany" }
272
+ - ps : If ($env:TARGET -eq "vs2022-nuget") {
273
+ .\build.ps1 -VisualStudioVersion $env:TARGET.Substring(2, 4) -Configuration $env:CONFIGURATION -Platform Win32 -PythonPath $env:PYTHON_PATH -VSToolsOptions "--extend-with-x64 --no-python-dll --with-dokany";
274
+ .\build.ps1 -VisualStudioVersion $env:TARGET.Substring(2, 4) -Configuration $env:CONFIGURATION -Platform x64 -PythonPath $env:PYTHON_PATH -VSToolsOptions "--extend-with-x64 --no-python-dll --with-dokany" }
275
+ - cmd : if [%TARGET%]==[vs2022-nuget] (
234
276
move msvscpp vs2008 &&
235
- move vs2017 msvscpp &&
277
+ move vs2022 msvscpp &&
236
278
nuget pack libvmdk.nuspec )
237
- - ps : If ($env:TARGET -eq "vs2019") {
238
- .\build.ps1 -VisualStudioVersion 2019 -VSToolsOptions "--extend-with-x64 --no-python-dll --with-dokany" }
239
279
- sh : if test ${BUILD_ENVIRONMENT} = "xcode"; then export PATH="/usr/local/opt/gettext/bin:$PATH"; export SED="/usr/local/bin/gsed"; tests/build.sh ${CONFIGURE_OPTIONS}; fi
240
280
- cmd : if [%BUILD_ENVIRONMENT%]==[python] (
241
281
" %PYTHON%" setup.py bdist_wheel )
242
282
- sh : if test ${BUILD_ENVIRONMENT} = "python-tox"; then export PATH="/usr/local/opt/gettext/bin:$PATH"; export SED="/usr/local/bin/gsed"; ./synclibs.sh && ./autogen.sh && ./configure --disable-nls --disable-shared-libs && make >/dev/null && tox -e${TOXENV}; fi
243
283
- cmd : if [%BUILD_ENVIRONMENT%]==[cygwin64] (
244
284
xcopy /i /q /s C:\projects\libvmdk C:\cygwin64\home\appveyor\libvmdk &&
245
- C:\cygwin64\bin\bash -e -l -c "cd libvmdk && wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O './config.guess' && wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -O './config.sub'" &&
285
+ C:\cygwin64\bin\bash -e -l -c "cd libvmdk && wget -q 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O './config.guess' && wget -q 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -O './config.sub'" &&
246
286
C:\cygwin64\bin\bash -e -l -c "cd libvmdk && tests/build.sh ${CONFIGURE_OPTIONS}" )
247
287
- cmd : if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
248
288
xcopy /i /q /s C:\projects\libvmdk C:\msys64\home\appveyor\libvmdk &&
@@ -260,16 +300,19 @@ test_script:
260
300
C:\msys64\usr\bin\bash -l -c "cd libvmdk && tests/runtests.sh" )
261
301
262
302
after_test :
303
+ - cmd : if [%TARGET%]==[cygwin64-gcc-no-optimization] (
304
+ C:\cygwin64\bin\bash -e -l -c "cd libvmdk && for DIRECTORY in `find . -maxdepth 1 -type d`; do (cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) done" &&
305
+ C:\projects\codecov.exe -R \cygwin64\home\appveyor\libvmdk --name %TARGET% )
263
306
- cmd : if [%TARGET%]==[mingw-w64-gcc-no-optimization] (
264
- copy C:\projects\codecov-bash\codecov C:\ msys64\home\appveyor\ libvmdk\codecov.sh &&
265
- C:\msys64\usr\bin\bash -e -l -c "cd libvmdk && chmod a+x ./codecov.sh && ./codecov.sh -n ${ TARGET}" )
307
+ C:\msys64\usr\bin\bash -e -l -c "cd libvmdk && for DIRECTORY in `find . -maxdepth 1 -type d`; do (cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) done" &&
308
+ C:\projects\codecov.exe -R \ msys64\home\appveyor\libvmdk --name % TARGET% )
266
309
267
310
artifacts :
268
311
- path : \*.nupkg
269
312
- path : dist\*.whl
270
313
271
314
deploy_script :
272
- - ps : If ($env:APPVEYOR_REPO_TAG -eq "true" -and $isWindows -and $env:TARGET -eq "vs2017 ") {
315
+ - ps : If ($env:APPVEYOR_REPO_TAG -eq "true" -and $isWindows -and $env:TARGET -eq "vs2022-nuget ") {
273
316
Invoke-Expression "nuget push *.nupkg -NonInteractive -NoSymbols -Source https://api.nuget.org/v3/index.json -ApiKey ${env:NUGET_TOKEN}" }
274
317
- ps : If ($env:APPVEYOR_REPO_TAG -eq "true" -and $isWindows -and $env:BUILD_ENVIRONMENT -eq "python") {
275
318
Invoke-Expression "${env:PYTHON} -m twine upload dist/*.whl --username __token__ --password ${env:PYPI_TOKEN} --skip-existing" }
0 commit comments