Skip to content

Commit

Permalink
Merge pull request #1927 from wiredfool/appveyor-rdp
Browse files Browse the repository at this point in the history
Appveyor Upgrades
  • Loading branch information
hugovk committed May 24, 2016
2 parents 00158fc + 710126e commit 32e118f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
31 changes: 27 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ version: 3.3.pre.{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
matrix:
Expand All @@ -11,35 +14,55 @@ environment:
- PYTHON: C:/Python34-x64
- PYTHON: C:/Python33
- PYTHON: C:/Python33-x64

install:
- git clone https://github.com/python-pillow/pillow-depends.git c:\pillow-depends
- xcopy c:\pillow-depends\*.zip c:\pillow\winbuild\
- xcopy c:\pillow-depends\*.tar.gz c:\pillow\winbuild\
- cd c:\pillow\winbuild\
- c:\python34\python.exe c:\pillow\winbuild\build_dep.py
- c:\pillow\winbuild\build_deps.cmd

build_script:
- '%PYTHON%\python.exe c:\pillow\winbuild\build.py'
- cd c:\pillow
- dir dist\*.egg
- '%PYTHON%\python.exe selftest.py --installed'

test_script:
- cd c:\pillow
- '%PYTHON%\Scripts\pip.exe install nose'
- '%PYTHON%\python.exe test-installed.py -v -s'

matrix:
fast_finish: true

artifacts:
- path: pillow\dist\*.egg
name: build
name: egg
- path: pillow\dist\*.wheel
name: wheel

after_test:
- ps: Get-ChildItem .\dist\*.egg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- '%PYTHON%\Scripts\pip.exe install wheel'
- cd c:\pillow\winbuild\
- '%PYTHON%\python.exe c:\pillow\winbuild\build.py --wheel'
- cd c:\pillow
- ps: Get-ChildItem .\dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

deploy:
provider: S3
access_key_id: AKIAIRAXC62ZNTVQJMOQ
secret_access_key:
secure: Hwb6klTqtBeMgxAjRoDltiiqpuH8xbwD4UooDzBSiCWXjuFj1lyl4kHgHwTCCGqi
bucket: pillow-nightly
folder: win/$(APPVEYOR_BUILD_NUMBER)/
artifact: /.*egg/

artifact: /.*egg|wheel/
on:
branch: master

# 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'))
6 changes: 4 additions & 2 deletions winbuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def run_one(op):


if __name__ == '__main__':
opts, args = getopt.getopt(sys.argv[1:], '', ['clean', 'dist'])
opts, args = getopt.getopt(sys.argv[1:], '', ['clean', 'dist', 'wheel'])
opts = dict(opts)

if '--clean' in opts:
Expand All @@ -151,7 +151,9 @@ def run_one(op):
op = 'install'
if '--dist' in opts:
op = "bdist_wininst --user-access-control=auto"

elif '--wheel' in opts:
op = "bdist_wheel"

if 'PYTHON' in os.environ:
run_one(op)
else:
Expand Down

0 comments on commit 32e118f

Please sign in to comment.