cb3ef4c05972ad75655afbee8b8445e76e068814
[aubio.git] / .appveyor.yml
1 # appveyor configuration. See http://www.appveyor.com/docs/appveyor-yml
2 # and http://www.appveyor.com/docs/installed-software#python
3
4 environment:
5
6   matrix:
7
8     # pre-installed python version, see:
9     # http://www.appveyor.com/docs/installed-software#python
10     - PYTHONDIR: "C:\\Python27"
11       PYTHON_VERSION: "2.7.x"
12       PYTHON_ARCH: "32"
13
14     - PYTHONDIR: "C:\\Python27-x64"
15       PYTHON_VERSION: "2.7.x"
16       PYTHON_ARCH: "64"
17
18     - PYTHONDIR: "C:\\Python35"
19       PYTHON_VERSION: "3.5.x"
20       PYTHON_ARCH: "32"
21
22     - PYTHONDIR: "C:\\Python35-x64"
23       PYTHON_VERSION: "3.5.x"
24       PYTHON_ARCH: "64"
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"
41
42 install:
43
44   - ECHO "Installed SDKs:"
45   - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
46
47   # Check that we have the expected version and architecture for Python
48   - "%PYTHONDIR%\\python.exe --version"
49   - "%PYTHONDIR%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
50
51   - "%PYTHONDIR%\\python.exe -m pip install --disable-pip-version-check --user --upgrade pip"
52   - "%PYTHONDIR%\\python.exe -m pip install --upgrade setuptools"
53
54   # We need wheel installed to build wheels
55   - "%PYTHONDIR%\\python.exe -m pip install wheel"
56
57   - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
58
59 before_build:
60   - "bash scripts/get_waf.sh"
61
62 build_script:
63   # build python module without using libaubio
64   - "%PYTHONDIR%\\python.exe -m pip install -r requirements.txt"
65   - "python setup.py build"
66   - "%PYTHONDIR%\\python.exe -m pip install ."
67   - "python python\\demos\\demo_create_test_sounds.py"
68   - "nose2 --verbose"
69   # clean up
70   - "python waf distclean"
71   # build libaubio
72   - python waf configure build --verbose --msvc_version="msvc 14.0"