Pillow/.appveyor.yml

98 lines
3.1 KiB
YAML
Raw Normal View History

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:
EXECUTABLE: python.exe
TEST_OPTIONS:
DEPLOY: YES
matrix:
2022-11-08 02:58:33 +03:00
- PYTHON: C:/Python311
2020-03-28 00:22:51 +03:00
ARCHITECTURE: x86
2022-02-06 00:32:37 +03:00
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
2021-10-15 13:07:53 +03:00
- PYTHON: C:/Python37-x64
2020-03-28 00:22:51 +03:00
ARCHITECTURE: x64
2020-10-27 22:54:04 +03:00
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
install:
2021-10-05 12:18:50 +03:00
- '%PYTHON%\%EXECUTABLE% --version'
2021-10-15 17:30:05 +03:00
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
- 7z x pillow-depends.zip -oc:\
- 7z x pillow-test-images.zip -oc:\
2021-10-15 17:30:05 +03:00
- mv c:\pillow-depends-main c:\pillow-depends
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
2021-04-20 15:36:45 +03:00
- 7z x ..\pillow-depends\nasm-2.15.05-win64.zip -oc:\
2023-03-25 03:32:22 +03:00
- choco install ghostscript --version=10.0.0.20230317
- path c:\nasm-2.15.05;C:\Program Files\gs\gs10.00.0\bin;%PATH%
- cd c:\pillow\winbuild\
- ps: |
2020-02-25 02:00:57 +03:00
c:\python37\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
$host.SetShouldExit(0)
2020-01-01 15:02:27 +03:00
- path C:\pillow\winbuild\build\bin;%PATH%
build_script:
- ps: |
2020-01-01 04:47:23 +03:00
c:\pillow\winbuild\build\build_pillow.cmd install
$host.SetShouldExit(0)
- cd c:\pillow
- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
test_script:
- cd c:\pillow
2022-03-26 07:14:47 +03:00
- '%PYTHON%\%EXECUTABLE% -m pip install pytest pytest-cov pytest-timeout'
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"'
- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests'
#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
after_test:
2020-10-29 14:41:29 +03:00
- python -m pip install codecov
- codecov --file coverage.xml --name %PYTHON% --flags AppVeyor
matrix:
fast_finish: true
cache:
- '%LOCALAPPDATA%\pip\Cache'
artifacts:
- path: pillow\dist\*.egg
name: egg
- path: pillow\dist\*.wheel
name: wheel
before_deploy:
- cd c:\pillow
2020-10-29 14:41:29 +03:00
- '%PYTHON%\%EXECUTABLE% -m pip install wheel'
- cd c:\pillow\winbuild\
2020-01-01 04:47:23 +03:00
- c:\pillow\winbuild\build\build_pillow.cmd bdist_wheel
- cd c:\pillow
- ps: Get-ChildItem .\dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
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:
APPVEYOR_REPO_NAME: python-pillow/Pillow
2021-10-15 17:30:05 +03:00
branch: main
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'))