|
1 | 1 | # AppVeyor.com is a Continuous Integration service to build and run tests under
|
2 |
| -# Windows. |
| 2 | +# Windows |
3 | 3 | #
|
4 | 4 | # Taken from the skimage project (https://github.com/scikit-image/scikit-image)
|
5 | 5 |
|
6 | 6 | environment:
|
7 |
| - global: |
8 |
| - # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the |
9 |
| - # /E:ON and /V:ON options are not enabled in the batch script intepreter |
10 |
| - # See: http://stackoverflow.com/a/13751649/163740 |
11 |
| - CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\tools\\run_with_env.cmd" |
12 |
| - |
13 | 7 | matrix:
|
14 |
| - - PYTHON: "C:\\Python27-conda32" |
15 |
| - PYTHON_VERSION: "2.7" |
16 |
| - PYTHON_ARCH: "32" |
17 |
| - |
18 |
| - - PYTHON: "C:\\Python27-conda64" |
19 |
| - PYTHON_VERSION: "2.7" |
20 |
| - PYTHON_ARCH: "64" |
21 |
| - |
22 |
| - - PYTHON: "C:\\Python36-conda32" |
23 |
| - PYTHON_VERSION: "3.6" |
24 |
| - PYTHON_ARCH: "32" |
| 8 | + - PYTHON: C:\Python27 |
| 9 | + - PYTHON: C:\Python27-x64 |
| 10 | + - PYTHON: C:\Python36 |
| 11 | + - PYTHON: C:\Python36-x64 |
25 | 12 |
|
26 |
| - - PYTHON: "C:\\Python36-conda64" |
27 |
| - PYTHON_VERSION: "3.6" |
28 |
| - PYTHON_ARCH: "64" |
| 13 | +matrix: |
| 14 | + fast_finish: true |
29 | 15 |
|
30 | 16 | install:
|
31 | 17 | - ECHO "Filesystem root:"
|
32 | 18 | - ps: "ls \"C:/\""
|
33 |
| - |
34 |
| - # Install Python and all the required packages. |
35 |
| - - "powershell ./tools/install.ps1" |
36 | 19 |
|
37 |
| - # Prepend newly installed Python to the PATH of this build |
38 |
| - # (this cannot be done from inside the powershell script as it would require |
39 |
| - # to restart the parent CMD process). |
40 | 20 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
| 21 | + - "python -m pip install -U pip" |
41 | 22 |
|
42 | 23 | # Check that we have the expected version and architecture for Python
|
43 | 24 | - "python --version"
|
44 | 25 | - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
|
| 26 | + - "pip --version" |
45 | 27 |
|
46 | 28 | # Install the build and runtime dependencies of the project.
|
47 |
| - - "%CMD_IN_ENV% python setup.py bdist_wheel bdist_wininst" |
| 29 | + - pip install --retries 3 -q wheel pytest pytest-timeout cython numpy scipy |
| 30 | + - pip list |
| 31 | + - python setup.py bdist_wheel bdist_wininst |
48 | 32 | - ps: "ls dist"
|
49 | 33 |
|
50 | 34 | # Install the generated wheel package to test it
|
51 | 35 | - "pip install --pre --no-index --find-links dist/ lap"
|
52 | 36 |
|
53 |
| -# Not a .NET project, we build lapjv in the install step instead |
| 37 | +# Not a .NET project, we build lap in the install step instead |
54 | 38 | build: false
|
55 | 39 |
|
56 | 40 | test_script:
|
57 | 41 | # Change to a non-source folder to make sure we run the tests on the
|
58 | 42 | # installed library.
|
59 | 43 | - "cd C:\\"
|
60 | 44 |
|
| 45 | + # Run unit tests with pytest |
61 | 46 | - "python -c \"import pytest; import os; from lap.tests import __file__ as d; d = os.path.dirname(d); pytest.main([d])\""
|
62 | 47 |
|
63 | 48 | artifacts:
|
|
0 commit comments