Added wheel builds/artifact

This commit is contained in:
wiredfool 2016-05-24 03:20:54 -07:00
parent 19f7049950
commit 710126e32c
2 changed files with 20 additions and 5 deletions

View File

@ -14,6 +14,7 @@ environment:
- PYTHON: C:/Python34-x64 - PYTHON: C:/Python34-x64
- PYTHON: C:/Python33 - PYTHON: C:/Python33
- PYTHON: C:/Python33-x64 - PYTHON: C:/Python33-x64
install: install:
- git clone https://github.com/python-pillow/pillow-depends.git c:\pillow-depends - 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\*.zip c:\pillow\winbuild\
@ -21,22 +22,34 @@ install:
- cd c:\pillow\winbuild\ - cd c:\pillow\winbuild\
- c:\python34\python.exe c:\pillow\winbuild\build_dep.py - c:\python34\python.exe c:\pillow\winbuild\build_dep.py
- c:\pillow\winbuild\build_deps.cmd - c:\pillow\winbuild\build_deps.cmd
build_script: build_script:
- '%PYTHON%\python.exe c:\pillow\winbuild\build.py' - '%PYTHON%\python.exe c:\pillow\winbuild\build.py'
- cd c:\pillow - cd c:\pillow
- dir dist\*.egg - dir dist\*.egg
- '%PYTHON%\python.exe selftest.py --installed' - '%PYTHON%\python.exe selftest.py --installed'
test_script: test_script:
- cd c:\pillow - cd c:\pillow
- '%PYTHON%\Scripts\pip.exe install nose' - '%PYTHON%\Scripts\pip.exe install nose'
- '%PYTHON%\python.exe test-installed.py -v -s' - '%PYTHON%\python.exe test-installed.py -v -s'
matrix: matrix:
fast_finish: true fast_finish: true
artifacts: artifacts:
- path: pillow\dist\*.egg - path: pillow\dist\*.egg
name: build name: egg
- path: pillow\dist\*.wheel
name: wheel
after_test: 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: deploy:
provider: S3 provider: S3
access_key_id: AKIAIRAXC62ZNTVQJMOQ access_key_id: AKIAIRAXC62ZNTVQJMOQ
@ -44,7 +57,7 @@ deploy:
secure: Hwb6klTqtBeMgxAjRoDltiiqpuH8xbwD4UooDzBSiCWXjuFj1lyl4kHgHwTCCGqi secure: Hwb6klTqtBeMgxAjRoDltiiqpuH8xbwD4UooDzBSiCWXjuFj1lyl4kHgHwTCCGqi
bucket: pillow-nightly bucket: pillow-nightly
folder: win/$(APPVEYOR_BUILD_NUMBER)/ folder: win/$(APPVEYOR_BUILD_NUMBER)/
artifact: /.*egg/ artifact: /.*egg|wheel/
on: on:
branch: master branch: master

View File

@ -142,7 +142,7 @@ def run_one(op):
if __name__ == '__main__': 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) opts = dict(opts)
if '--clean' in opts: if '--clean' in opts:
@ -151,7 +151,9 @@ if __name__ == '__main__':
op = 'install' op = 'install'
if '--dist' in opts: if '--dist' in opts:
op = "bdist_wininst --user-access-control=auto" op = "bdist_wininst --user-access-control=auto"
elif '--wheel' in opts:
op = "bdist_wheel"
if 'PYTHON' in os.environ: if 'PYTHON' in os.environ:
run_one(op) run_one(op)
else: else: