source:
.appveyor.yml
@
7e0b641
Last change on this file since 7e0b641 was bf3f09b, checked in by , 6 years ago | |
---|---|
|
|
File size: 2.0 KB |
Rev | Line | |
---|---|---|
[e84f7b9] | 1 | # appveyor configuration. See http://www.appveyor.com/docs/appveyor-yml |
[a0f0f00] | 2 | # and http://www.appveyor.com/docs/installed-software#python |
[c4c5130] | 3 | |
4 | environment: | |
5 | ||
6 | matrix: | |
[e0c74c2] | 7 | |
8 | # pre-installed python version, see: | |
9 | # http://www.appveyor.com/docs/installed-software#python | |
[0ff34aa] | 10 | - PYTHONDIR: C:\Python27 |
11 | PYTHON_VERSION: 2.7.x | |
12 | PYTHON_ARCH: 32 | |
[e0c74c2] | 13 | |
[0ff34aa] | 14 | - PYTHONDIR: C:\Python27-x64 |
15 | PYTHON_VERSION: 2.7.x | |
16 | PYTHON_ARCH: 64 | |
[e0c74c2] | 17 | |
[0ff34aa] | 18 | - PYTHONDIR: C:\Python35 |
19 | PYTHON_VERSION: 3.5.x | |
20 | PYTHON_ARCH: 32 | |
[e0c74c2] | 21 | |
[0ff34aa] | 22 | - PYTHONDIR: C:\Python35-x64 |
23 | PYTHON_VERSION: 3.5.x | |
24 | PYTHON_ARCH: 64 | |
[7d9b8a5] | 25 | |
[0ff34aa] | 26 | - PYTHONDIR: C:\Python36 |
27 | PYTHON_VERSION: 3.6.x | |
28 | PYTHON_ARCH: 32 | |
[7d9b8a5] | 29 | |
[0ff34aa] | 30 | - PYTHONDIR: C:\Python36-x64 |
31 | PYTHON_VERSION: 3.6.x | |
32 | PYTHON_ARCH: 64 | |
[7d9b8a5] | 33 | |
[0ff34aa] | 34 | - PYTHONDIR: C:\Python37 |
35 | PYTHON_VERSION: 3.7.x | |
36 | PYTHON_ARCH: 32 | |
[7d9b8a5] | 37 | |
[0ff34aa] | 38 | - PYTHONDIR: C:\Python37-x64 |
39 | PYTHON_VERSION: 3.7.x | |
40 | PYTHON_ARCH: 64 | |
[c4c5130] | 41 | |
42 | install: | |
43 | - ECHO "Installed SDKs:" | |
44 | - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" | |
45 | ||
[981e0a38] | 46 | - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%" |
47 | ||
[c4c5130] | 48 | # Check that we have the expected version and architecture for Python |
[981e0a38] | 49 | - "python --version" |
50 | - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" | |
[a0f0f00] | 51 | |
[981e0a38] | 52 | - "python -m pip install --disable-pip-version-check --user --upgrade pip" |
53 | - "python -m pip install --upgrade setuptools" | |
[ac26526] | 54 | |
[a0f0f00] | 55 | # We need wheel installed to build wheels |
[981e0a38] | 56 | - "python -m pip install wheel" |
[77d9370] | 57 | |
[205fe43] | 58 | - "pip install -r requirements.txt" |
59 | ||
[e84f7b9] | 60 | before_build: |
[92ab78e] | 61 | - "bash scripts/get_waf.sh" |
[e84f7b9] | 62 | |
63 | build_script: | |
[205fe43] | 64 | # also build libaubio with waf |
[8ced1e8] | 65 | - python waf configure build install --verbose --msvc_version="msvc 14.0" |
[cdc610b] | 66 | # clean before building python package |
67 | - python waf distclean | |
[6e4dc1b] | 68 | # build, upload and install wheel (inspired by numpy's appveyor) |
69 | - ps: | | |
[b801583] | 70 | pip wheel -v -v -v --wheel-dir=dist . |
71 | ls dist -r | Foreach-Object { | |
72 | Push-AppveyorArtifact $_.FullName | |
73 | pip install $_.FullName | |
74 | } | |
[205fe43] | 75 | |
76 | test_script: | |
[e0c74c2] | 77 | - "python python\\demos\\demo_create_test_sounds.py" |
[39aa3a3] | 78 | - "pytest --verbose" |
Note: See TracBrowser
for help on using the repository browser.