-
Notifications
You must be signed in to change notification settings - Fork 68
/
appveyor.yml
57 lines (45 loc) · 1.61 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
# AppVeyor.com is a Continuous Integration service to build and run tests under
# Windows
#
# Adapted from the skimage project (https://github.com/scikit-image/scikit-image)
environment:
matrix:
- PYTHON: C:\Python27
- PYTHON: C:\Python27-x64
- PYTHON: C:\Python37
- PYTHON: C:\Python37-x64
- PYTHON: C:\Python38
- PYTHON: C:\Python38-x64
- PYTHON: C:\Python39
- PYTHON: C:\Python39-x64
matrix:
fast_finish: true
install:
- ECHO "Filesystem root:"
- ps: "ls \"C:/\""
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python -m pip install -U pip"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "pip --version"
# Install the build and runtime dependencies of the project.
- pip install --retries 3 -q wheel pytest pytest-timeout cython numpy scipy
- pip list
- python setup.py bdist_wheel bdist_wininst
- ps: "ls dist"
# Install the generated wheel package to test it
- "pip install --pre --no-index --find-links dist/ lap"
# Not a .NET project, we build lap in the install step instead
build: false
test_script:
# Change to a non-source folder to make sure we run the tests on the
# installed library.
- "cd C:\\"
# Run unit tests with pytest
- "python -c \"import pytest; import os; from lap.tests import __file__ as d; d = os.path.dirname(d); pytest.main([d])\""
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: dist\*
#on_success:
# - TODO: upload the content of dist/*.whl to a public wheelhouse