Pillow/appveyor.yml

117 lines
3.2 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:
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
matrix:
2017-07-03 23:51:39 +03:00
- PYTHON: C:/vp/pypy2
EXECUTABLE: bin/pypy.exe
PIP_DIR: bin
VENV: YES
- PYTHON: C:/Python27-x64
- PYTHON: C:/Python34
- PYTHON: C:/Python27
- PYTHON: C:/Python34-x64
2015-07-30 15:23:57 +03:00
- PYTHON: C:/Python33
- PYTHON: C:/Python33-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
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 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
- 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
$host.SetShouldExit(0)
}
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"
$host.SetShouldExit(0)
}
else
{
& $env:PYTHON/$env:EXECUTABLE c:\pillow\winbuild\build.py
$host.SetShouldExit(0)
}
- cd c:\pillow
2017-10-25 17:53:30 +03:00
- mv PIL PIL.temp
2017-07-03 23:51:39 +03:00
- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
2016-05-24 13:20:54 +03:00
test_script:
- cd c:\pillow
2017-07-03 23:51:39 +03:00
- '%PYTHON%\%PIP_DIR%\pip.exe install nose'
2017-09-19 15:45:09 +03:00
- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%'
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
- mv PIL.temp PIL
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
region: us-west-2
access_key_id: AKIAIRAXC62ZNTVQJMOQ
2016-04-07 11:11:13 +03:00
secret_access_key:
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/
on:
branch: master
2017-09-19 15:45:09 +03:00
deploy: YES
# Uncomment the following line 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'))