-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
59 lines (53 loc) · 1.76 KB
/
appveyor.yml
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
51
52
53
54
55
56
57
58
59
# AppVeyor.com is a Continuous Integration service to build and run tests under
# Windows
# https://ci.appveyor.com/project/dit/dit
environment:
# global:
# # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# # /E:ON and /V:ON options are not enabled in the batch script intepreter
# # See: http://stackoverflow.com/a/13751649/163740
# CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
matrix:
- PY_MAJOR_VER: 2
PYTHON_ARCH: "x86"
CYTHON: 0
- PY_MAJOR_VER: 2
PYTHON_ARCH: "x86"
CYTHON: 1
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86_64"
CYTHON: 0
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86_64"
CYTHON: 1
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86"
CYTHON: 0
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86"
CYTHON: 1
matrix:
fast_finish: true
allow_failures:
- CYTHON: 1
build_script:
- ps: Start-FileDownload "https://repo.continuum.io/miniconda/Miniconda$env:PY_MAJOR_VER-latest-Windows-$env:PYTHON_ARCH.exe" C:\Miniconda.exe; echo "Finished downloading miniconda"
- cmd: C:\Miniconda.exe /S /D=C:\Py
- SET PATH=C:\Py;C:\Py\Scripts;C:\Py\Library\bin;%PATH%
- conda config --set always_yes yes
# - conda update conda
- conda install scipy
- ps: if ($env:CYTHON -eq '1') { conda install cython }
- ps: if ($env:CYTHON -eq '1') { python setup.py build }
- pip install .
- pip install --upgrade --ignore-installed -r requirements_testing.txt
test_script:
# Change to a non-source folder to make sure we run the tests on the
# installed library.
# - "pushd %TEMP%"
- ps: if ($env:CYTHON -eq '1')
{ pytest --numprocesses=auto --cov=dit }
else
{ pytest -m "not cython" --numprocesses=auto --cov=dit }
after_test:
- codecov