shithub: aubio

ref: 981e0a384c356e960b3a0959617e3a65f33801d0
dir: /.appveyor.yml/

View raw version
# 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"

before_build:
  - "bash scripts/get_waf.sh"

build_script:
  # build python module without using libaubio
  - "%PYTHONDIR%\\python.exe -m pip install -r requirements.txt"
  - "python setup.py build"
  - "%PYTHONDIR%\\python.exe -m pip install ."
  - "python python\\demos\\demo_create_test_sounds.py"
  - "nose2 --verbose"
  # clean up
  - "python waf distclean"
  # build libaubio
  - python waf configure build --verbose --msvc_version="msvc 14.0"