X-Git-Url: https://git.aubio.org/?p=aubio.git;a=blobdiff_plain;f=.appveyor.yml;h=d7c51f2edf019c9d0f5a93adc370a4dda7fe8771;hp=21dad545f435effe863bdea04b6d7f27ad0f462e;hb=12e5d8969f8d1e62ca1c7c0fdf311b7d27d18bde;hpb=c785cc2c4c9813dbf29cccb78404918dd98f6173;ds=sidebyside diff --git a/.appveyor.yml b/.appveyor.yml index 21dad545..d7c51f2e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -7,63 +7,72 @@ environment: # pre-installed python version, see: # http://www.appveyor.com/docs/installed-software#python - - PYTHON: "C:\\Python27" - PYTHON_VERSION: "2.7.x" - PYTHON_ARCH: "32" + - PYTHONDIR: C:\Python27 + PYTHON_VERSION: 2.7.x + PYTHON_ARCH: 32 - - PYTHON: "C:\\Python27-x64" - PYTHON_VERSION: "2.7.x" - PYTHON_ARCH: "64" + - PYTHONDIR: C:\Python27-x64 + PYTHON_VERSION: 2.7.x + PYTHON_ARCH: 64 - - PYTHON: "C:\\Python34" - PYTHON_VERSION: "3.4.x" - PYTHON_ARCH: "32" + - PYTHONDIR: C:\Python35 + PYTHON_VERSION: 3.5.x + PYTHON_ARCH: 32 - - PYTHON: "C:\\Python34-x64" - PYTHON_VERSION: "3.4.x" - PYTHON_ARCH: "64" + - PYTHONDIR: C:\Python35-x64 + PYTHON_VERSION: 3.5.x + PYTHON_ARCH: 64 - - PYTHON: "C:\\Python35" - PYTHON_VERSION: "3.5.x" - PYTHON_ARCH: "32" + - PYTHONDIR: C:\Python36 + PYTHON_VERSION: 3.6.x + PYTHON_ARCH: 32 - - PYTHON: "C:\\Python35-x64" - PYTHON_VERSION: "3.5.x" - PYTHON_ARCH: "64" - # add path required to run preprocessor step - PATH_EXTRAS: "c:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin" + - PYTHONDIR: C:\Python36-x64 + PYTHON_VERSION: 3.6.x + PYTHON_ARCH: 64 -install: + - 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%\\python.exe --version" - - "%PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\"" + - "python --version" + - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" - # We need wheel installed to build wheels - - "%PYTHON%\\python.exe -m pip install wheel" + - "python -m pip install --disable-pip-version-check --user --upgrade pip" + - "python -m pip install --upgrade setuptools" - - "SET PATH=%PATH_EXTRAS%;%%PYTHON%;%PYTHON%\\Scripts;%PATH%" + # We need wheel installed to build wheels + - "python -m pip install wheel" - - "pip install --disable-pip-version-check --user --upgrade pip" - - "pip install --upgrade setuptools" + - "pip install -r requirements.txt" before_build: - - curl -fsS -o waf https://waf.io/waf-1.8.22 - - curl -fsS -o waf.bat https://raw.githubusercontent.com/waf-project/waf/master/utils/waf.bat + - "bash scripts/get_waf.sh" build_script: - # build python module without using libaubio - - "pip install -r requirements.txt" - - "python setup.py build" - - "pip install ." + # also build libaubio with waf + - python waf configure build install --verbose --msvc_version="msvc 14.0" + # clean before building python package + - python waf distclean + # build, upload and install wheel (inspired by numpy's appveyor) + - ps: | + pip wheel -v -v -v --wheel-dir=dist . + ls dist -r | Foreach-Object { + Push-AppveyorArtifact $_.FullName + pip install $_.FullName + } + +test_script: - "python python\\demos\\demo_create_test_sounds.py" - - "nose2" - # clean up - - waf distclean - # build libaubio - - waf configure build --verbose - # build python module using libaubio dll - - "python setup.py build" + - "nose2 --verbose"