1environment: 2 3 global: 4 # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the 5 # /E:ON and /V:ON options are not enabled in the batch script intepreter 6 # See: http://stackoverflow.com/a/13751649/163740 7 WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_compiler.cmd" 8 9 matrix: 10 - BUILD_SYSTEM: CMake 11 GENERATOR: Visual Studio 14 2015 Win64 12 13 - BUILD_SYSTEM: CMake 14 GENERATOR: Visual Studio 14 2015 15 16 - BUILD_SYSTEM: CMake 17 GENERATOR: Visual Studio 12 2013 Win64 18 19 - BUILD_SYSTEM: CMake 20 GENERATOR: Visual Studio 12 2013 21 22 - BUILD_SYSTEM: Python 23 PYTHON: "C:\\Python27" 24 PYTHON_VERSION: "2.7.x" 25 PYTHON_ARCH: "32" 26 27 - BUILD_SYSTEM: Python 28 PYTHON: "C:\\Python34" 29 PYTHON_VERSION: "3.4.x" 30 PYTHON_ARCH: "32" 31 32 - BUILD_SYSTEM: Python 33 PYTHON: "C:\\Python35" 34 PYTHON_VERSION: "3.5.0" 35 PYTHON_ARCH: "32" 36 37 - BUILD_SYSTEM: Python 38 PYTHON: "C:\\Python27-x64" 39 PYTHON_VERSION: "2.7.x" 40 PYTHON_ARCH: "64" 41 42 - BUILD_SYSTEM: Python 43 PYTHON: "C:\\Python34-x64" 44 PYTHON_VERSION: "3.4.x" 45 PYTHON_ARCH: "64" 46 47 - BUILD_SYSTEM: Python 48 PYTHON: "C:\\Python35-x64" 49 PYTHON_VERSION: "3.5.0" 50 PYTHON_ARCH: "64" 51 52# init: 53# - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%" 54 55install: 56 - ps: | 57 if ($env:BUILD_SYSTEM -eq "Python") { 58 # install Python and pip when not already installed 59 if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 } 60 61 # prepend newly installed Python to the PATH 62 $env:Path = $env:PYTHON + ';' + $env:PYTHON + '\\Scripts;' + $env:PATH 63 64 # upgrade pip to avoid out-of-date warnings 65 pip install --disable-pip-version-check --user --upgrade pip 66 67 # install/upgrade setuptools and wheel to build packages 68 pip install --upgrade setuptools wheel 69 } 70 71before_build: 72 - ps: | 73 if ($env:BUILD_SYSTEM -eq "CMake") { 74 mkdir builddir 75 cd builddir 76 77 cmake -G "$env:GENERATOR" .. 78 } 79 80build_script: 81 - ps: | 82 if ($env:BUILD_SYSTEM -eq "CMake") { 83 cmake --build . --config Debug 84 } 85 86test_script: 87 - if "%BUILD_SYSTEM%" == "CMake" ( ctest --output-on-failure --interactive-debug-mode 0 -C Debug ) 88 - if "%BUILD_SYSTEM%" == "Python" ( python setup.py build test ) 89 90after_test: 91 - if "%BUILD_SYSTEM%" == "Python" ( pip wheel -w dist . ) 92 - if "%BUILD_SYSTEM%" == "Python" ( python setup.py sdist --formats=gztar,zip ) 93 94artifacts: 95 # archive the generated packages in the ci.appveyor.com build report 96 - path: dist\*.whl 97 - path: dist\*.zip 98 - path: dist\*.tar.gz 99 100# For info, see: http://www.appveyor.com/docs/deployment/github 101 102deploy: 103 - provider: GitHub 104 auth_token: 105 secure: dfL56DgbwuGJNNE5GzKi/pAgBQnJ37Du+AnCtnsTnIYxpis8ah3fPmA/G+bn4NJ3 106 artifact: 107 draft: false 108 prerelease: false 109 on: 110 appveyor_repo_tag: true 111