.appveyor.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. version: 1.0.{build}
  2. image:
  3. - Visual Studio 2015
  4. test: off
  5. skip_branch_with_pr: true
  6. build:
  7. parallel: true
  8. platform:
  9. - x86
  10. environment:
  11. matrix:
  12. - PYTHON: 36
  13. CONFIG: Debug
  14. - PYTHON: 27
  15. CONFIG: Debug
  16. install:
  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"
  27. build_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%
  37. on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log*