|
1 | 1 | # vim ft=yaml
|
2 | 2 | # CI on Windows via appveyor
|
3 |
| -# This file was based on Olivier Grisel's python-appveyor-demo |
4 | 3 |
|
5 | 4 | environment:
|
6 | 5 |
|
7 | 6 | matrix:
|
8 |
| - - PYTHON: "C:\\Python27-conda32" |
9 |
| - PYTHON_VERSION: "2.7" |
10 |
| - PYTHON_ARCH: "32" |
11 |
| - |
12 |
| - - PYTHON: "C:\\Python34-conda32" |
13 |
| - PYTHON_VERSION: "3.4" |
14 |
| - PYTHON_ARCH: "32" |
15 |
| - |
16 |
| - - PYTHON: "C:\\Python34-conda64" |
17 |
| - PYTHON_VERSION: "3.4" |
18 |
| - PYTHON_ARCH: "64" |
19 |
| - |
20 |
| - - PYTHON: "C:\\Python35-conda64" |
21 |
| - PYTHON_VERSION: "3.5" |
22 |
| - PYTHON_ARCH: "64" |
23 |
| - |
24 |
| - - PYTHON: "C:\\Python35-conda32" |
25 |
| - PYTHON_VERSION: "3.5" |
26 |
| - PYTHON_ARCH: "32" |
| 7 | + - PYTHON: C:\Python27 |
| 8 | + - PYTHON: C:\Python27-x64 |
| 9 | + - PYTHON: C:\Python34 |
| 10 | + - PYTHON: C:\Python34-x64 |
| 11 | + - PYTHON: C:\Python35 |
| 12 | + - PYTHON: C:\Python35-x64 |
| 13 | + - PYTHON: C:\Python36 |
| 14 | + - PYTHON: C:\Python36-x64 |
27 | 15 |
|
28 | 16 | install:
|
29 |
| - # Install miniconda Python |
30 |
| - - "powershell ./tools/install_python.ps1" |
31 |
| - |
32 | 17 | # Prepend newly installed Python to the PATH of this build (this cannot be
|
33 | 18 | # done from inside the powershell script as it would require to restart
|
34 | 19 | # the parent CMD process).
|
35 |
| - - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" |
36 |
| - |
37 |
| - # Set up a conda environment: |
38 |
| - - conda config --set always_yes yes |
39 |
| - - conda update -q conda |
40 |
| - - conda info -a |
41 |
| - - conda create -q -n test-environment python=%PYTHON_VERSION% |
42 |
| - - activate test-environment |
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)\"" |
| 20 | + - SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% |
47 | 21 |
|
48 | 22 | # Install the dependencies of the project.
|
49 |
| - - "conda install --yes --quiet numpy scipy matplotlib nose h5py mock" |
50 |
| - - "pip install pydicom" |
51 |
| - - "python setup.py install" |
52 |
| - - "SET NIBABEL_DATA_DIR=%CD%\\nibabel-data" |
| 23 | + - pip install numpy scipy matplotlib nose h5py mock |
| 24 | + - pip install pydicom |
| 25 | + - pip install . |
| 26 | + - SET NIBABEL_DATA_DIR=%CD%\nibabel-data |
53 | 27 |
|
54 | 28 | build: false # Not a C# project, build stuff at the test step instead.
|
55 | 29 |
|
56 | 30 | test_script:
|
57 | 31 | # Change into an innocuous directory and find tests from installation
|
58 |
| - - "mkdir for_testing" |
59 |
| - - "cd for_testing" |
60 |
| - - "nosetests --with-doctest nibabel" |
| 32 | + - mkdir for_testing |
| 33 | + - cd for_testing |
| 34 | + - nosetests --with-doctest nibabel |
0 commit comments