• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1version: 1.0.{build}
2image:
3- Visual Studio 2015
4test: off
5skip_branch_with_pr: true
6build:
7  parallel: true
8platform:
9- x86
10environment:
11  matrix:
12  - PYTHON: 36
13    CONFIG: Debug
14  - PYTHON: 27
15    CONFIG: Debug
16install:
17- ps: |
18    $env:CMAKE_GENERATOR = "Visual Studio 14 2015"
19    if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
20    $env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
21    python -W ignore -m pip install --upgrade pip wheel
22    python -W ignore -m pip install pytest numpy --no-warn-script-location pytest-timeout
23- ps: |
24    Start-FileDownload 'https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip'
25    7z x eigen-3.3.7.zip -y > $null
26    $env:CMAKE_INCLUDE_PATH = "eigen-3.3.7;$env:CMAKE_INCLUDE_PATH"
27build_script:
28- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%"
29    -DCMAKE_CXX_STANDARD=14
30    -DPYBIND11_WERROR=ON
31    -DDOWNLOAD_CATCH=ON
32    -DCMAKE_SUPPRESS_REGENERATION=1
33    .
34- set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
35- cmake --build . --config %CONFIG% --target pytest -- /m /v:m /logger:%MSBuildLogger%
36- cmake --build . --config %CONFIG% --target cpptest -- /m /v:m /logger:%MSBuildLogger%
37on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log*
38