| 1 |
environment: |
| 2 |
HDF5_LIBDIR: C:\HDF5 |
| 3 |
|
| 4 |
global: |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" |
| 9 |
|
| 10 |
matrix: |
| 11 |
|
| 12 |
- PYTHON: "C:\\Python27-x64" |
| 13 |
PYTHON_VERSION: "2.7.x" |
| 14 |
PYTHON_ARCH: "64" |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
- PYTHON: "C:\\Python27.10-x64" |
| 19 |
PYTHON_VERSION: "2.7.10" |
| 20 |
PYTHON_ARCH: "64" |
| 21 |
|
| 22 |
|
| 23 |
- PYTHON: "C:\\Python27.10" |
| 24 |
PYTHON_VERSION: "2.7.10" |
| 25 |
PYTHON_ARCH: "32" |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
- PYTHON: "C:\\Python27" |
| 31 |
PYTHON_VERSION: "2.7.x" |
| 32 |
PYTHON_ARCH: "32" |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
install: |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` |
| 52 |
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` |
| 53 |
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` |
| 54 |
throw "There are newer queued builds for this pull request, failing early." } |
| 55 |
- ECHO "Filesystem root:" |
| 56 |
- ps: "ls \"C:/\"" |
| 57 |
|
| 58 |
- ECHO "Installed SDKs:" |
| 59 |
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
- ps: "appveyor\\install.ps1" |
| 65 |
|
| 66 |
|
| 67 |
- cmd: mkdir C:\HDF5 |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%;C:\\HDF5" |
| 78 |
|
| 79 |
|
| 80 |
- "python --version" |
| 81 |
- "python -c \"import struct; print(struct.calcsize('P') * 8)\"" |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
- "pip install --disable-pip-version-check --user --upgrade pip" |
| 86 |
|
| 87 |
- "%CMD_IN_ENV% pip install wheel" |
| 88 |
- "%CMD_IN_ENV% pip install nose" |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
- ps: if ($env:PYTHON_ARCH -eq "32") { ` |
| 96 |
Invoke-WebRequest "http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/h5py-2.5.0-cp27-none-win32.whl" -OutFile "C:\HDF5\h5py-2.5.0-cp27-none-win32.whl"; |
| 97 |
pip install C:\HDF5\h5py-2.5.0-cp27-none-win32.whl ` |
| 98 |
} else { ` |
| 99 |
Invoke-WebRequest "http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/h5py-2.5.0-cp27-none-win_amd64.whl" -OutFile "C:\HDF5\h5py-2.5.0-cp27-none-win_amd64.whl"; |
| 100 |
pip install C:\HDF5\h5py-2.5.0-cp27-none-win_amd64.whl ` |
| 101 |
} |
| 102 |
|
| 103 |
- ps: if ($env:PYTHON_ARCH -eq "32") { ` |
| 104 |
Invoke-WebRequest "http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/matplotlib-1.5.1-cp27-none-win32.whl" -OutFile "C:\HDF5\matplotlib-1.5.1-cp27-none-win32.whl"; |
| 105 |
pip install C:\HDF5\matplotlib-1.5.1-cp27-none-win32.whl ` |
| 106 |
} else { ` |
| 107 |
Invoke-WebRequest "http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/matplotlib-1.5.1-cp27-none-win_amd64.whl" -OutFile "C:\HDF5\matplotlib-1.5.1-cp27-none-win_amd64.whl"; |
| 108 |
pip install C:\HDF5\matplotlib-1.5.1-cp27-none-win_amd64.whl ` |
| 109 |
} |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
- ps: Invoke-WebRequest "http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/seaborn-0.7.0-py2.py3-none-any.whl" -OutFile "C:\HDF5\seaborn-0.7.0-py2.py3-none-any.whl" |
| 123 |
|
| 124 |
- ps: pip install C:\\HDF5\\seaborn-0.7.0-py2.py3-none-any.whl |
| 125 |
|
| 126 |
|
| 127 |
build_script: |
| 128 |
|
| 129 |
- "%CMD_IN_ENV% python setup.py build" |
| 130 |
- "%CMD_IN_ENV% python setup.py install" |
| 131 |
|
| 132 |
test_script: |
| 133 |
|
| 134 |
- "%CMD_IN_ENV% python setup.py nosetests" |
| 135 |
|
| 136 |
after_test: |
| 137 |
|
| 138 |
- "%CMD_IN_ENV% python setup.py bdist_wheel" |
| 139 |
- "%CMD_IN_ENV% python setup.py bdist_wininst" |
| 140 |
- "%CMD_IN_ENV% python setup.py bdist_msi" |
| 141 |
- ps: "ls dist" |
| 142 |
|
| 143 |
artifacts: |
| 144 |
|
| 145 |
- path: dist\* |