source: .appveyor.yml @ 8ced1e8

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since 8ced1e8 was 8ced1e8, checked in by Paul Brossier <piem@piem.org>, 6 years ago

.appveyor.yml: do force waf to use msvc 14 (tests/ wont compile on 10)

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