Debian Codegraph @

appveyor.yml

raw symbols SCIP
1 environment:
2 HDF5_LIBDIR: C:\HDF5
3
4 global:
5 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
6 # /E:ON and /V:ON options are not enabled in the batch script intepreter
7 # See: http://stackoverflow.com/a/13751649/163740
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" # currently 2.7.9
14 PYTHON_ARCH: "64"
15
16
17 # Python 2.7.10 is the latest version and is not pre-installed.
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 # Pre-installed Python versions, which Appveyor may upgrade to
28 # a later point release.
29 # See: http://www.appveyor.com/docs/installed-software#python
30 - PYTHON: "C:\\Python27"
31 PYTHON_VERSION: "2.7.x" # currently 2.7.9
32 PYTHON_ARCH: "32"
33
34 # Major and minor releases (i.e x.0.0 and x.y.0) prior to 3.3.0 use
35 # a different naming scheme.
36
37 #- PYTHON: "C:\\Python270"
38 # PYTHON_VERSION: "2.7.0"
39 # PYTHON_ARCH: "32"
40 #
41 #- PYTHON: "C:\\Python270-x64"
42 # PYTHON_VERSION: "2.7.0"
43 # PYTHON_ARCH: "64"
44
45 install:
46 # If there is a newer build queued for the same PR, cancel this one.
47 # The AppVeyor 'rollout builds' option is supposed to serve the same
48 # purpose but it is problematic because it tends to cancel builds pushed
49 # directly to master instead of just PR builds (or the converse).
50 # credits: JuliaLang developers.
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 # Install Python (from the official .msi of http://python.org) and pip when
62 # not already installed.
63 #- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
64 - ps: "appveyor\\install.ps1"
65
66 # https://github.com/aldanor/hdf5-rs/blob/master/appveyor.yml
67 - cmd: mkdir C:\HDF5
68 #- cmd: mkdir C:\HDF5\lib
69 #- ps: Invoke-WebRequest "https://github.com/kkirstein/hdf5-rs/releases/download/alpha/hdf5.dll" -OutFile "C:\HDF5\lib\hdf5.dll"
70 #- cmd: set PATH=C:\HDF5\bin;%PATH%
71 #- cmd: set PATH=C:\HDF5\bin;%PATH%
72 #- ps: Invoke-WebRequest "https://github.com/kkirstein/hdf5-rs/releases/download/alpha/hdf5.dll" -OutFile "C:\HDF5\lib\hdf5.dll"
73
74 # Prepend newly installed Python to the PATH of this build (this cannot be
75 # done from inside the powershell script as it would require to restart
76 # the parent CMD process).
77 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%;C:\\HDF5"
78
79 # Check that we have the expected version and architecture for Python
80 - "python --version"
81 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
82
83 # Upgrade to the latest version of pip to avoid it displaying warnings
84 # about it being out of date.
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 # Install the build dependencies of the project. If some dependencies contain
91 # compiled extensions and are not provided as pre-built wheel packages,
92 # pip will build them from source using the MSVC compiler matching the
93 # target Python version and architecture
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 #- ps: Invoke-WebRequest "https://pypi.python.org/packages/2.7/h/h5py/h5py-2.5.0.win32-py2.7.exe" -OutFile "C:\HDF5\h5py-2.5.0.win32-py2.7.exe"
112 #- ps: Invoke-WebRequest "http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/h5py-2.5.0-cp27-none-win%PYTHON_ARCH%.whl" -OutFile "C:\HDF5\h5py-2.5.0-cp27-none-win%PYTHON_ARCH%.whl"
113 #- "%CMD_IN_ENV% C:\\HDF5\\h5py-2.5.0.win32-py2.7.exe"
114 #- "%CMD_IN_ENV% pip install C:\\HDF5\\h5py-2.5.0-cp27-none-win.whl"
115 #- "%CMD_IN_ENV% pip install -r requirements.txt"
116 #
117 #- ps: 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"
118 #- "%CMD_IN_ENV% C:\\HDF5\\h5py-2.5.0.win32-py2.7.exe"
119 #- "%CMD_IN_ENV% pip install C:\\HDF5\\matplotlib-1.5.1-cp27-none-win32.whl"
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 #- "%CMD_IN_ENV% C:\\HDF5\\h5py-2.5.0.win32-py2.7.exe"
124 - ps: pip install C:\\HDF5\\seaborn-0.7.0-py2.py3-none-any.whl
125
126
127 build_script:
128 # Build the compiled extension
129 - "%CMD_IN_ENV% python setup.py build"
130 - "%CMD_IN_ENV% python setup.py install"
131
132 test_script:
133 # Run the project tests
134 - "%CMD_IN_ENV% python setup.py nosetests"
135
136 after_test:
137 # If tests are successful, create binary packages for the project.
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 # Archive the generated packages in the ci.appveyor.com build report.
145 - path: dist\*