File: .appveyor.yml

package info (click to toggle)
nipy 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,128 kB
  • sloc: python: 45,886; ansic: 30,932; makefile: 253; sh: 53
file content (50 lines) | stat: -rw-r--r-- 1,590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# vim ft=yaml
# CI on Windows via appveyor

environment:
  global:
    EXTRA_FLAGS: ""

  matrix:
    - PYTHON: C:\Python27
    - PYTHON: C:\Python27-x64
      # Doctest fail from the long Ls, as in (1L, 2L) != (1, 2)
      EXTRA_FLAGS: "--without-doctest"
    - PYTHON: C:\Python34
    - PYTHON: C:\Python34-x64
    - PYTHON: C:\Python35
    - PYTHON: C:\Python35-x64
    - PYTHON: C:\Python36
    - PYTHON: C:\Python36-x64

install:
  # Prepend newly installed Python to the PATH of this build (this cannot be
  # done from inside the powershell script as it would require to restart
  # the parent CMD process).
  - SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
  - python -m pip install -U pip

  # Fix MSVC builds for 64-bit Python. See:
  # http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10
  - 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"

  # Install the dependencies of the project.
  - pip install numpy Cython nose nibabel sympy scipy
  # Pin wheel to 0.26 to avoid Windows ABI tag for built wheel
  - pip install wheel==0.26
  # install
  - pip install .

build: false  # Not a C# project, build stuff at the test step instead.

test_script:
  # Change into an innocuous directory and find tests from installation
  - mkdir for_testing
  - cd for_testing
  - python --version
  - python ..\tools\nipnost %EXTRA_FLAGS% nipy
  - cd ..

cache:
  # Use the appveyor cache to avoid re-downloading large archives.
  - '%APPDATA%\pip\Cache'