Cosimo Lupo | 0630090 | 2015-08-11 12:15:03 +0100 | [diff] [blame] | 1 | environment:
|
| 2 |
|
| 3 | global:
|
| 4 | # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
|
| 5 | # /E:ON and /V:ON options are not enabled in the batch script intepreter
|
| 6 | # See: http://stackoverflow.com/a/13751649/163740
|
| 7 | WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_compiler.cmd"
|
| 8 |
|
| 9 | matrix:
|
| 10 | - PYTHON: "C:\\Python27"
|
| 11 | PYTHON_VERSION: "2.7.x"
|
| 12 | PYTHON_ARCH: "32"
|
| 13 |
|
| 14 | - PYTHON: "C:\\Python34"
|
| 15 | PYTHON_VERSION: "3.4.x"
|
| 16 | PYTHON_ARCH: "32"
|
| 17 |
|
Cosimo Lupo | 3333176 | 2015-10-07 09:18:01 +0100 | [diff] [blame] | 18 | - PYTHON: "C:\\Python35"
|
| 19 | PYTHON_VERSION: "3.5.0"
|
| 20 | PYTHON_ARCH: "32"
|
| 21 |
|
Cosimo Lupo | 0630090 | 2015-08-11 12:15:03 +0100 | [diff] [blame] | 22 | - PYTHON: "C:\\Python27-x64"
|
| 23 | PYTHON_VERSION: "2.7.x"
|
| 24 | PYTHON_ARCH: "64"
|
Cosimo Lupo | 0630090 | 2015-08-11 12:15:03 +0100 | [diff] [blame] | 25 |
|
| 26 | - PYTHON: "C:\\Python34-x64"
|
| 27 | PYTHON_VERSION: "3.4.x"
|
| 28 | PYTHON_ARCH: "64"
|
Cosimo Lupo | 0630090 | 2015-08-11 12:15:03 +0100 | [diff] [blame] | 29 |
|
Cosimo Lupo | 3333176 | 2015-10-07 09:18:01 +0100 | [diff] [blame] | 30 | - PYTHON: "C:\\Python35-x64"
|
| 31 | PYTHON_VERSION: "3.5.0"
|
| 32 | PYTHON_ARCH: "64"
|
| 33 |
|
Cosimo Lupo | 0630090 | 2015-08-11 12:15:03 +0100 | [diff] [blame] | 34 | init:
|
| 35 | - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
|
| 36 |
|
| 37 | install:
|
| 38 | # install Python and pip when not already installed
|
| 39 | - ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
|
| 40 |
|
| 41 | # prepend newly installed Python to the PATH
|
| 42 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
| 43 |
|
| 44 | # check that we have the expected version and architecture for Python
|
| 45 | - "python --version"
|
| 46 | - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
|
| 47 |
|
| 48 | # upgrade pip to avoid out-of-date warnings
|
| 49 | - "pip install --disable-pip-version-check --user --upgrade pip"
|
| 50 |
|
| 51 | # install wheel to build compiled packages
|
| 52 | - "pip install --upgrade wheel"
|
| 53 |
|
| 54 | build: false
|
| 55 |
|
| 56 | test_script:
|
| 57 | - "%WITH_COMPILER% python setup.py build_ext test"
|
| 58 |
|
| 59 | after_test:
|
| 60 | # if tests are successful, create binary packages for the project
|
| 61 | - "%WITH_COMPILER% pip wheel -w dist ."
|
| 62 |
|
| 63 | artifacts:
|
| 64 | # archive the generated packages in the ci.appveyor.com build report
|
| 65 | - path: dist\*
|
| 66 |
|
| 67 | # For info, see: http://www.appveyor.com/docs/deployment/github
|
| 68 |
|
Zoltan Szabadka | 8ce3494 | 2015-09-29 14:36:12 +0200 | [diff] [blame] | 69 | deploy:
|
| 70 | - provider: GitHub
|
| 71 | auth_token:
|
| 72 | secure: dfL56DgbwuGJNNE5GzKi/pAgBQnJ37Du+AnCtnsTnIYxpis8ah3fPmA/G+bn4NJ3
|
| 73 | artifact:
|
| 74 | draft: false
|
| 75 | prerelease: false
|
| 76 | on:
|
| 77 | appveyor_repo_tag: true
|