forked from aubio/aubio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
78 lines (59 loc) · 2 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# appveyor configuration. See http://www.appveyor.com/docs/appveyor-yml
# and http://www.appveyor.com/docs/installed-software#python
environment:
matrix:
# pre-installed python version, see:
# http://www.appveyor.com/docs/installed-software#python
- PYTHONDIR: C:\Python27
PYTHON_VERSION: 2.7.x
PYTHON_ARCH: 32
- PYTHONDIR: C:\Python27-x64
PYTHON_VERSION: 2.7.x
PYTHON_ARCH: 64
- PYTHONDIR: C:\Python35
PYTHON_VERSION: 3.5.x
PYTHON_ARCH: 32
- PYTHONDIR: C:\Python35-x64
PYTHON_VERSION: 3.5.x
PYTHON_ARCH: 64
- PYTHONDIR: C:\Python36
PYTHON_VERSION: 3.6.x
PYTHON_ARCH: 32
- PYTHONDIR: C:\Python36-x64
PYTHON_VERSION: 3.6.x
PYTHON_ARCH: 64
- PYTHONDIR: C:\Python37
PYTHON_VERSION: 3.7.x
PYTHON_ARCH: 32
- PYTHONDIR: C:\Python37-x64
PYTHON_VERSION: 3.7.x
PYTHON_ARCH: 64
install:
- ECHO "Installed SDKs:"
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
- "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "python -m pip install --disable-pip-version-check --user --upgrade pip"
- "python -m pip install --upgrade setuptools"
# We need wheel installed to build wheels
- "python -m pip install wheel"
- "pip install -r requirements.txt"
before_build:
- "bash scripts/get_waf.sh"
build_script:
# also build libaubio with waf
- python waf configure build install --verbose --msvc_version="msvc 14.0"
# clean before building python package
- python waf distclean
# build, upload and install wheel (inspired by numpy's appveyor)
- ps: |
pip wheel -v -v -v --wheel-dir=dist .
ls dist -r | Foreach-Object {
Push-AppveyorArtifact $_.FullName
pip install $_.FullName
}
test_script:
- "python python\\demos\\demo_create_test_sounds.py"
- "pytest --verbose"