2024-03-27 13:30:39 +03:00
|
|
|
skip_commits:
|
|
|
|
files:
|
2024-04-03 04:19:45 +03:00
|
|
|
- ".github/**/*"
|
2024-03-27 13:30:39 +03:00
|
|
|
- ".gitmodules"
|
2024-04-03 04:19:45 +03:00
|
|
|
- "docs/**/*"
|
|
|
|
- "wheels/**/*"
|
2024-03-27 13:30:39 +03:00
|
|
|
|
2018-02-27 14:26:32 +03:00
|
|
|
version: '{build}'
|
|
|
|
clone_folder: c:\pillow
|
|
|
|
init:
|
|
|
|
- ECHO %PYTHON%
|
|
|
|
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|
|
# Uncomment previous line to get RDP access during the build.
|
|
|
|
|
|
|
|
environment:
|
2024-02-20 22:42:39 +03:00
|
|
|
COVERAGE_CORE: sysmon
|
2018-02-27 14:26:32 +03:00
|
|
|
EXECUTABLE: python.exe
|
|
|
|
TEST_OPTIONS:
|
|
|
|
DEPLOY: YES
|
|
|
|
matrix:
|
2023-10-31 04:44:53 +03:00
|
|
|
- PYTHON: C:/Python312
|
2023-06-27 13:51:16 +03:00
|
|
|
ARCHITECTURE: x86
|
2022-02-06 00:32:37 +03:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
2023-04-01 15:58:08 +03:00
|
|
|
- PYTHON: C:/Python38-x64
|
2024-01-04 22:26:14 +03:00
|
|
|
ARCHITECTURE: AMD64
|
2020-10-27 22:54:04 +03:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
2018-02-27 14:26:32 +03:00
|
|
|
|
|
|
|
|
|
|
|
install:
|
2021-10-05 12:18:50 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% --version'
|
2023-05-28 21:14:39 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% -m pip install --upgrade pip'
|
2023-09-21 12:20:17 +03:00
|
|
|
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
|
2023-01-28 00:19:03 +03:00
|
|
|
- 7z x pillow-test-images.zip -oc:\
|
|
|
|
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
|
2024-04-18 01:33:37 +03:00
|
|
|
- curl -fsSL -o nasm-win64.zip https://raw.githubusercontent.com/python-pillow/pillow-depends/main/nasm-2.16.03-win64.zip
|
2023-09-18 17:10:29 +03:00
|
|
|
- 7z x nasm-win64.zip -oc:\
|
2024-05-24 23:20:03 +03:00
|
|
|
- choco install ghostscript --version=10.3.1
|
2024-04-18 01:33:37 +03:00
|
|
|
- path c:\nasm-2.16.03;C:\Program Files\gs\gs10.00.0\bin;%PATH%
|
2018-02-27 14:26:32 +03:00
|
|
|
- cd c:\pillow\winbuild\
|
2019-09-20 19:04:04 +03:00
|
|
|
- ps: |
|
2023-04-01 15:58:08 +03:00
|
|
|
c:\python38\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\
|
2020-01-01 04:44:11 +03:00
|
|
|
c:\pillow\winbuild\build\build_dep_all.cmd
|
2018-02-27 14:26:32 +03:00
|
|
|
$host.SetShouldExit(0)
|
2020-01-01 15:02:27 +03:00
|
|
|
- path C:\pillow\winbuild\build\bin;%PATH%
|
2018-02-27 14:26:32 +03:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cd c:\pillow
|
2023-06-24 17:13:26 +03:00
|
|
|
- winbuild\build\build_env.cmd
|
|
|
|
- '%PYTHON%\%EXECUTABLE% -m pip install -v -C raqm=vendor -C fribidi=vendor .'
|
2018-02-27 14:26:32 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- cd c:\pillow
|
2023-10-30 01:02:29 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% -m pip install pytest pytest-cov pytest-timeout defusedxml numpy olefile pyroma'
|
2019-11-02 05:11:56 +03:00
|
|
|
- c:\"Program Files (x86)"\"Windows Kits"\10\Debuggers\x86\gflags.exe /p /enable %PYTHON%\%EXECUTABLE%
|
2021-01-09 15:04:32 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% -c "from PIL import Image"'
|
2019-10-22 16:37:04 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests'
|
2018-02-27 14:26:32 +03:00
|
|
|
#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
|
|
|
|
|
|
|
|
after_test:
|
2023-04-12 18:12:21 +03:00
|
|
|
- curl -Os https://uploader.codecov.io/latest/windows/codecov.exe
|
|
|
|
- .\codecov.exe --file coverage.xml --name %PYTHON% --flags AppVeyor
|
2018-02-27 14:26:32 +03:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
cache:
|
|
|
|
- '%LOCALAPPDATA%\pip\Cache'
|
|
|
|
|
|
|
|
artifacts:
|
2023-06-24 17:13:26 +03:00
|
|
|
- path: pillow\*.egg
|
2018-02-27 14:26:32 +03:00
|
|
|
name: egg
|
2023-06-24 17:13:26 +03:00
|
|
|
- path: pillow\*.whl
|
2018-02-27 14:26:32 +03:00
|
|
|
name: wheel
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- cd c:\pillow
|
2023-06-24 17:13:26 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% -m pip wheel -v -C raqm=vendor -C fribidi=vendor .'
|
|
|
|
- ps: Get-ChildItem .\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
2018-02-27 14:26:32 +03:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: S3
|
|
|
|
region: us-west-2
|
|
|
|
access_key_id: AKIAIRAXC62ZNTVQJMOQ
|
|
|
|
secret_access_key:
|
|
|
|
secure: Hwb6klTqtBeMgxAjRoDltiiqpuH8xbwD4UooDzBSiCWXjuFj1lyl4kHgHwTCCGqi
|
|
|
|
bucket: pillow-nightly
|
|
|
|
folder: win/$(APPVEYOR_BUILD_NUMBER)/
|
|
|
|
artifact: /.*egg|wheel/
|
|
|
|
on:
|
2018-02-27 14:27:26 +03:00
|
|
|
APPVEYOR_REPO_NAME: python-pillow/Pillow
|
2021-10-15 17:30:05 +03:00
|
|
|
branch: main
|
2018-02-27 14:26:32 +03:00
|
|
|
deploy: YES
|
|
|
|
|
|
|
|
|
|
|
|
# Uncomment the following lines to get RDP access after the build/test and block for
|
|
|
|
# up to the timeout limit (~1hr)
|
|
|
|
#
|
|
|
|
#on_finish:
|
|
|
|
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|