2018-02-27 14:26:32 +03:00
|
|
|
version: '{build}'
|
2020-01-01 04:47:23 +03:00
|
|
|
image: Visual Studio 2017
|
2018-02-27 14:26:32 +03:00
|
|
|
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
|
|
|
|
PIP_DIR: Scripts
|
|
|
|
TEST_OPTIONS:
|
|
|
|
DEPLOY: YES
|
|
|
|
matrix:
|
2019-11-09 11:09:16 +03:00
|
|
|
- PYTHON: C:/Python38
|
2020-03-28 00:22:51 +03:00
|
|
|
ARCHITECTURE: x86
|
2020-06-27 14:39:44 +03:00
|
|
|
- PYTHON: C:/Python36-x64
|
2020-03-28 00:22:51 +03:00
|
|
|
ARCHITECTURE: x64
|
2018-02-27 14:26:32 +03:00
|
|
|
|
|
|
|
|
|
|
|
install:
|
|
|
|
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/master.zip
|
|
|
|
- 7z x pillow-depends.zip -oc:\
|
|
|
|
- mv c:\pillow-depends-master c:\pillow-depends
|
|
|
|
- xcopy /s c:\pillow-depends\test_images\* c:\pillow\tests\images
|
2020-01-01 04:47:23 +03:00
|
|
|
- 7z x ..\pillow-depends\nasm-2.14.02-win64.zip -oc:\
|
2020-01-01 15:02:27 +03:00
|
|
|
- curl -fsSL -o gs952.exe https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/gs952w32.exe
|
|
|
|
- gs952.exe /S
|
|
|
|
- path c:\nasm-2.14.02;C:\Program Files (x86)\gs\gs9.52\bin;%PATH%
|
2018-02-27 14:26:32 +03:00
|
|
|
- cd c:\pillow\winbuild\
|
2019-09-20 19:04:04 +03:00
|
|
|
- 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
|
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:
|
|
|
|
- ps: |
|
2020-01-01 04:47:23 +03:00
|
|
|
c:\pillow\winbuild\build\build_pillow.cmd install
|
2018-02-27 14:26:32 +03:00
|
|
|
$host.SetShouldExit(0)
|
|
|
|
- cd c:\pillow
|
|
|
|
- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- cd c:\pillow
|
2018-08-10 20:15:21 +03:00
|
|
|
- '%PYTHON%\%PIP_DIR%\pip.exe install pytest pytest-cov'
|
2019-11-02 05:11:56 +03:00
|
|
|
- c:\"Program Files (x86)"\"Windows Kits"\10\Debuggers\x86\gflags.exe /p /enable %PYTHON%\%EXECUTABLE%
|
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:
|
|
|
|
- pip install codecov
|
2020-01-24 10:28:52 +03:00
|
|
|
- codecov --file coverage.xml --name %PYTHON% --flags AppVeyor
|
2018-02-27 14:26:32 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
- '%PYTHON%\%PIP_DIR%\pip.exe install wheel'
|
|
|
|
- cd c:\pillow\winbuild\
|
2020-01-01 04:47:23 +03:00
|
|
|
- c:\pillow\winbuild\build\build_pillow.cmd bdist_wheel
|
2018-02-27 14:26:32 +03:00
|
|
|
- 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:
|
2018-02-27 14:27:26 +03:00
|
|
|
APPVEYOR_REPO_NAME: python-pillow/Pillow
|
2018-02-27 14:26:32 +03:00
|
|
|
branch: master
|
|
|
|
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'))
|