version: 2.1.{build} os: Windows Server 2012 environment: global: PYTHONPATH: c:\testdir PYTHONWARNINGS: 'ignore:::pip.pep425tags:' matrix: # For Python versions available on Appveyor, see # http://www.appveyor.com/docs/installed-software#python # The list here is complete (excluding Python 2.6, which # isn't covered by this document) at the time of writing. - PYTHON: "C:\\Python27" - PYTHON: "C:\\Python33" - PYTHON: "C:\\Python34" - PYTHON: "C:\\Python35" - PYTHON: "C:\\Python27-x64" - PYTHON: "C:\\Python33-x64" DISTUTILS_USE_SDK: "1" - PYTHON: "C:\\Python34-x64" DISTUTILS_USE_SDK: "1" - PYTHON: "C:\\Python35-x64" install: # We need wheel installed to build wheels - "%PYTHON%\\python.exe -m pip install --upgrade pip" - "%PYTHON%\\python.exe -m pip install wheel" - "%PYTHON%\\python.exe -m pip install six" build_script: - "%PYTHON%\\python.exe setup.py bdist_wheel" test_script: - cd "%PYTHON%" - ps: Scripts\pip.exe install --no-cache-dir --force-reinstall --ignore-installed ('C:\\projects\\pythonnet\\dist\\' + (gci C:\projects\pythonnet\dist)[0].Name) - cd C:\projects\pythonnet - mkdir c:\testdir - ps: copy-item (gci -path build -re -include Python.Test.dll)[0].FullName c:\testdir - "%PYTHON%\\python.exe src\\tests\\runtests.py" artifacts: # bdist_wheel puts your built wheel in the dist directory - path: dist\*