2017-06-21 16:20:03 +03:00
|
|
|
version: '{build}'
|
2015-06-16 03:56:24 +03:00
|
|
|
clone_folder: c:\pillow
|
|
|
|
init:
|
|
|
|
- ECHO %PYTHON%
|
2016-05-12 14:32:20 +03:00
|
|
|
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
2017-03-25 19:41:18 +03:00
|
|
|
# Uncomment previous line to get RDP access during the build.
|
2016-05-12 14:32:20 +03:00
|
|
|
|
2015-06-16 03:56:24 +03:00
|
|
|
environment:
|
|
|
|
X64_EXT: -x64
|
2017-07-03 23:51:39 +03:00
|
|
|
EXECUTABLE: python.exe
|
|
|
|
PIP_DIR: Scripts
|
|
|
|
VENV: NO
|
2017-09-19 15:45:09 +03:00
|
|
|
TEST_OPTIONS:
|
|
|
|
DEPLOY: YES
|
2015-06-16 03:56:24 +03:00
|
|
|
matrix:
|
2017-07-03 23:51:39 +03:00
|
|
|
- PYTHON: C:/vp/pypy2
|
|
|
|
EXECUTABLE: bin/pypy.exe
|
|
|
|
PIP_DIR: bin
|
|
|
|
VENV: YES
|
2015-06-16 03:56:24 +03:00
|
|
|
- PYTHON: C:/Python27-x64
|
|
|
|
- PYTHON: C:/Python34
|
|
|
|
- PYTHON: C:/Python27
|
|
|
|
- PYTHON: C:/Python34-x64
|
2017-09-19 15:45:09 +03:00
|
|
|
- PYTHON: C:/msys64/mingw32
|
|
|
|
EXECUTABLE: bin/python3
|
|
|
|
PIP_DIR: bin
|
|
|
|
TEST_OPTIONS: --processes=0
|
|
|
|
DEPLOY: NO
|
2016-05-24 13:20:54 +03:00
|
|
|
|
2017-07-03 23:51:39 +03:00
|
|
|
|
2015-06-16 03:56:24 +03:00
|
|
|
install:
|
2017-03-25 22:05:44 +03:00
|
|
|
- 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
|
2015-06-16 03:56:24 +03:00
|
|
|
- xcopy c:\pillow-depends\*.zip c:\pillow\winbuild\
|
|
|
|
- xcopy c:\pillow-depends\*.tar.gz c:\pillow\winbuild\
|
2016-11-22 18:19:39 +03:00
|
|
|
- xcopy /s c:\pillow-depends\test_images\* c:\pillow\tests\images
|
2015-06-16 03:56:24 +03:00
|
|
|
- cd c:\pillow\winbuild\
|
2017-07-03 23:51:39 +03:00
|
|
|
- ps: |
|
|
|
|
if ($env:PYTHON -eq "c:/vp/pypy2")
|
|
|
|
{
|
|
|
|
c:\pillow\winbuild\appveyor_install_pypy.cmd
|
|
|
|
}
|
2017-09-19 15:45:09 +03:00
|
|
|
- ps: |
|
|
|
|
if ($env:PYTHON -eq "c:/msys64/mingw32")
|
|
|
|
{
|
|
|
|
c:\msys64\usr\bin\bash -l -c c:\\pillow\\winbuild\\appveyor_install_msys2_deps.sh
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
c:\python34\python.exe c:\pillow\winbuild\build_dep.py
|
|
|
|
c:\pillow\winbuild\build_deps.cmd
|
2017-11-18 06:37:45 +03:00
|
|
|
$host.SetShouldExit(0)
|
2017-09-19 15:45:09 +03:00
|
|
|
}
|
2017-11-18 06:37:45 +03:00
|
|
|
|
2015-06-16 03:56:24 +03:00
|
|
|
build_script:
|
2017-09-19 15:45:09 +03:00
|
|
|
- ps: |
|
|
|
|
if ($env:PYTHON -eq "c:/msys64/mingw32")
|
|
|
|
{
|
|
|
|
c:\msys64\usr\bin\bash -l -c c:\\pillow\\winbuild\\appveyor_build_msys2.sh
|
|
|
|
Write-Host "through install"
|
2017-11-18 06:37:45 +03:00
|
|
|
$host.SetShouldExit(0)
|
2017-09-19 15:45:09 +03:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
& $env:PYTHON/$env:EXECUTABLE c:\pillow\winbuild\build.py
|
2017-11-18 06:37:45 +03:00
|
|
|
$host.SetShouldExit(0)
|
2017-09-19 15:45:09 +03:00
|
|
|
}
|
2015-06-16 03:56:24 +03:00
|
|
|
- cd c:\pillow
|
2017-07-03 23:51:39 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
|
2016-05-24 13:20:54 +03:00
|
|
|
|
2015-06-16 03:56:24 +03:00
|
|
|
test_script:
|
|
|
|
- cd c:\pillow
|
2017-10-29 16:11:00 +03:00
|
|
|
- '%PYTHON%\%PIP_DIR%\pip.exe install pytest pytest-cov'
|
2017-11-01 23:29:45 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov-report term --cov-report xml Tests'
|
2017-10-29 16:11:00 +03:00
|
|
|
#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
|
|
|
|
|
|
|
|
after_test:
|
|
|
|
- pip install codecov
|
|
|
|
- codecov --file coverage.xml --name %PYTHON%
|
2016-05-24 13:20:54 +03:00
|
|
|
|
2015-07-01 09:56:52 +03:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2016-05-24 13:20:54 +03:00
|
|
|
|
2016-04-07 11:11:13 +03:00
|
|
|
artifacts:
|
|
|
|
- path: pillow\dist\*.egg
|
2016-05-24 13:20:54 +03:00
|
|
|
name: egg
|
|
|
|
- path: pillow\dist\*.wheel
|
|
|
|
name: wheel
|
|
|
|
|
2017-09-19 15:45:09 +03:00
|
|
|
before_deploy:
|
2017-10-25 17:53:30 +03:00
|
|
|
- cd c:\pillow
|
2017-07-03 23:51:39 +03:00
|
|
|
- '%PYTHON%\%PIP_DIR%\pip.exe install wheel'
|
2016-05-24 13:20:54 +03:00
|
|
|
- cd c:\pillow\winbuild\
|
2017-07-03 23:51:39 +03:00
|
|
|
- '%PYTHON%\%EXECUTABLE% c:\pillow\winbuild\build.py --wheel'
|
2016-05-24 13:20:54 +03:00
|
|
|
- cd c:\pillow
|
|
|
|
- ps: Get-ChildItem .\dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
|
|
|
|
2016-04-07 11:11:13 +03:00
|
|
|
deploy:
|
|
|
|
provider: S3
|
2017-05-10 13:27:25 +03:00
|
|
|
region: us-west-2
|
2017-03-25 19:41:18 +03:00
|
|
|
access_key_id: AKIAIRAXC62ZNTVQJMOQ
|
2016-04-07 11:11:13 +03:00
|
|
|
secret_access_key:
|
2016-04-09 18:21:11 +03:00
|
|
|
secure: Hwb6klTqtBeMgxAjRoDltiiqpuH8xbwD4UooDzBSiCWXjuFj1lyl4kHgHwTCCGqi
|
2016-04-07 11:11:13 +03:00
|
|
|
bucket: pillow-nightly
|
|
|
|
folder: win/$(APPVEYOR_BUILD_NUMBER)/
|
2016-05-24 13:20:54 +03:00
|
|
|
artifact: /.*egg|wheel/
|
2017-03-25 19:41:18 +03:00
|
|
|
on:
|
2016-05-12 14:32:20 +03:00
|
|
|
branch: master
|
2017-09-19 15:45:09 +03:00
|
|
|
deploy: YES
|
2017-03-25 19:41:18 +03:00
|
|
|
|
2017-11-18 06:37:45 +03:00
|
|
|
|
|
|
|
# Uncomment the following lines to get RDP access after the build/test and block for
|
2016-05-12 14:32:20 +03:00
|
|
|
# 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'))
|