Pillow
/
.appveyor.yml
100 строк · 3.2 Кб
1skip_commits:
2files:
3- ".github/**/*"
4- ".gitmodules"
5- "docs/**/*"
6- "wheels/**/*"
7
8version: '{build}'
9clone_folder: c:\pillow
10init:
11- ECHO %PYTHON%
12#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
13# Uncomment previous line to get RDP access during the build.
14
15environment:
16COVERAGE_CORE: sysmon
17EXECUTABLE: python.exe
18TEST_OPTIONS:
19DEPLOY: YES
20matrix:
21- PYTHON: C:/Python312
22ARCHITECTURE: x86
23APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
24- PYTHON: C:/Python39-x64
25ARCHITECTURE: AMD64
26APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
27
28
29install:
30- '%PYTHON%\%EXECUTABLE% --version'
31- '%PYTHON%\%EXECUTABLE% -m pip install --upgrade pip'
32- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
33- 7z x pillow-test-images.zip -oc:\
34- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
35- curl -fsSL -o nasm-win64.zip https://raw.githubusercontent.com/python-pillow/pillow-depends/main/nasm-2.16.03-win64.zip
36- 7z x nasm-win64.zip -oc:\
37- choco install ghostscript --version=10.3.1
38- path c:\nasm-2.16.03;C:\Program Files\gs\gs10.03.1\bin;%PATH%
39- cd c:\pillow\winbuild\
40- ps: |
41c:\python39\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\
42c:\pillow\winbuild\build\build_dep_all.cmd
43$host.SetShouldExit(0)
44- path C:\pillow\winbuild\build\bin;%PATH%
45
46build_script:
47- cd c:\pillow
48- winbuild\build\build_env.cmd
49- '%PYTHON%\%EXECUTABLE% -m pip install -v -C raqm=vendor -C fribidi=vendor .'
50- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
51
52test_script:
53- cd c:\pillow
54- '%PYTHON%\%EXECUTABLE% -m pip install pytest pytest-cov pytest-timeout defusedxml ipython numpy olefile pyroma'
55- c:\"Program Files (x86)"\"Windows Kits"\10\Debuggers\x86\gflags.exe /p /enable %PYTHON%\%EXECUTABLE%
56- '%PYTHON%\%EXECUTABLE% -c "from PIL import Image"'
57- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests'
58#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
59
60after_test:
61- curl -Os https://uploader.codecov.io/latest/windows/codecov.exe
62- .\codecov.exe --file coverage.xml --name %PYTHON% --flags AppVeyor
63
64matrix:
65fast_finish: true
66
67cache:
68- '%LOCALAPPDATA%\pip\Cache'
69
70artifacts:
71- path: pillow\*.egg
72name: egg
73- path: pillow\*.whl
74name: wheel
75
76before_deploy:
77- cd c:\pillow
78- '%PYTHON%\%EXECUTABLE% -m pip wheel -v -C raqm=vendor -C fribidi=vendor .'
79- ps: Get-ChildItem .\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
80
81deploy:
82provider: S3
83region: us-west-2
84access_key_id: AKIAIRAXC62ZNTVQJMOQ
85secret_access_key:
86secure: Hwb6klTqtBeMgxAjRoDltiiqpuH8xbwD4UooDzBSiCWXjuFj1lyl4kHgHwTCCGqi
87bucket: pillow-nightly
88folder: win/$(APPVEYOR_BUILD_NUMBER)/
89artifact: /.*egg|wheel/
90on:
91APPVEYOR_REPO_NAME: python-pillow/Pillow
92branch: main
93deploy: YES
94
95
96# Uncomment the following lines to get RDP access after the build/test and block for
97# up to the timeout limit (~1hr)
98#
99#on_finish:
100#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
101