[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 |
---|
[3cc0022] | 10 | - PYTHONDIR: "C:\\Python27" |
---|
[e0c74c2] | 11 | PYTHON_VERSION: "2.7.x" |
---|
| 12 | PYTHON_ARCH: "32" |
---|
| 13 | |
---|
[3cc0022] | 14 | - PYTHONDIR: "C:\\Python27-x64" |
---|
[e0c74c2] | 15 | PYTHON_VERSION: "2.7.x" |
---|
| 16 | PYTHON_ARCH: "64" |
---|
| 17 | |
---|
[3cc0022] | 18 | - PYTHONDIR: "C:\\Python35" |
---|
[e0c74c2] | 19 | PYTHON_VERSION: "3.5.x" |
---|
| 20 | PYTHON_ARCH: "32" |
---|
| 21 | |
---|
[3cc0022] | 22 | - PYTHONDIR: "C:\\Python35-x64" |
---|
[e0c74c2] | 23 | PYTHON_VERSION: "3.5.x" |
---|
| 24 | PYTHON_ARCH: "64" |
---|
[7d9b8a5] | 25 | |
---|
| 26 | - PYTHONDIR: "C:\\Python36" |
---|
| 27 | PYTHON_VERSION: "3.6.x" |
---|
| 28 | PYTHON_ARCH: "32" |
---|
| 29 | |
---|
| 30 | - PYTHONDIR: "C:\\Python36-x64" |
---|
| 31 | PYTHON_VERSION: "3.6.x" |
---|
| 32 | PYTHON_ARCH: "64" |
---|
| 33 | |
---|
| 34 | - PYTHONDIR: "C:\\Python37" |
---|
| 35 | PYTHON_VERSION: "3.7.x" |
---|
| 36 | PYTHON_ARCH: "32" |
---|
| 37 | |
---|
| 38 | - PYTHONDIR: "C:\\Python37-x64" |
---|
| 39 | PYTHON_VERSION: "3.7.x" |
---|
| 40 | PYTHON_ARCH: "64" |
---|
[c4c5130] | 41 | |
---|
| 42 | install: |
---|
| 43 | |
---|
| 44 | - ECHO "Installed SDKs:" |
---|
| 45 | - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" |
---|
| 46 | |
---|
[981e0a38] | 47 | - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%" |
---|
| 48 | |
---|
[c4c5130] | 49 | # Check that we have the expected version and architecture for Python |
---|
[981e0a38] | 50 | - "python --version" |
---|
| 51 | - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" |
---|
[a0f0f00] | 52 | |
---|
[981e0a38] | 53 | - "python -m pip install --disable-pip-version-check --user --upgrade pip" |
---|
| 54 | - "python -m pip install --upgrade setuptools" |
---|
[ac26526] | 55 | |
---|
[a0f0f00] | 56 | # We need wheel installed to build wheels |
---|
[981e0a38] | 57 | - "python -m pip install wheel" |
---|
[77d9370] | 58 | |
---|
[205fe43] | 59 | - "pip install -r requirements.txt" |
---|
| 60 | |
---|
[e84f7b9] | 61 | before_build: |
---|
[92ab78e] | 62 | - "bash scripts/get_waf.sh" |
---|
[e84f7b9] | 63 | |
---|
| 64 | build_script: |
---|
[205fe43] | 65 | # also build libaubio with waf |
---|
| 66 | - python waf distclean configure build install --verbose --msvc_version="msvc 14.0" |
---|
[b801583] | 67 | # build python module without using libaubio |
---|
| 68 | - pip wheel -v -v -v --wheel-dir=dist . |
---|
| 69 | - ps: | |
---|
| 70 | # build, upload and install wheel (inspired by numpy's appveyor) |
---|
| 71 | pip wheel -v -v -v --wheel-dir=dist . |
---|
| 72 | ls dist -r | Foreach-Object { |
---|
| 73 | Push-AppveyorArtifact $_.FullName |
---|
| 74 | pip install $_.FullName |
---|
| 75 | } |
---|
[205fe43] | 76 | |
---|
| 77 | test_script: |
---|
[e0c74c2] | 78 | - "python python\\demos\\demo_create_test_sounds.py" |
---|
[e087a50] | 79 | - "nose2 --verbose" |
---|