Skip to content

Commit b3c94be

Browse files
committed
Add appveyor file for daily build
1 parent 8b99c93 commit b3c94be

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.appveyor.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# vim ft=yaml
2+
# CI on Windows via appveyor
3+
4+
environment:
5+
global:
6+
EXTRA_FLAGS: ""
7+
8+
matrix:
9+
- PYTHON: C:\Python27
10+
- PYTHON: C:\Python27-x64
11+
# Doctest fail from the long Ls, as in (1L, 2L) != (1, 2)
12+
EXTRA_FLAGS: "--without-doctest"
13+
- PYTHON: C:\Python34
14+
- PYTHON: C:\Python34-x64
15+
- PYTHON: C:\Python35
16+
- PYTHON: C:\Python35-x64
17+
- PYTHON: C:\Python36
18+
- PYTHON: C:\Python36-x64
19+
20+
install:
21+
# Prepend newly installed Python to the PATH of this build (this cannot be
22+
# done from inside the powershell script as it would require to restart
23+
# the parent CMD process).
24+
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
25+
- python -m pip install -U pip
26+
27+
# Fix MSVC builds for 64-bit Python. See:
28+
# http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10
29+
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"
30+
31+
# Install the dependencies of the project.
32+
- pip install numpy Cython nose nibabel sympy scipy
33+
# Pin wheel to 0.26 to avoid Windows ABI tag for built wheel
34+
- pip install wheel==0.26
35+
# install
36+
- pip install .
37+
38+
build: false # Not a C# project, build stuff at the test step instead.
39+
40+
test_script:
41+
# Change into an innocuous directory and find tests from installation
42+
- mkdir for_testing
43+
- cd for_testing
44+
- python --version
45+
- python ..\tools\nipnost %EXTRA_FLAGS% nipy
46+
- cd ..
47+
48+
cache:
49+
# Use the appveyor cache to avoid re-downloading large archives.
50+
- '%APPDATA%\pip\Cache'

0 commit comments

Comments
 (0)