You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.6 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. version: 1.0.{build}
  2. image:
  3. - Visual Studio 2017
  4. - Visual Studio 2015
  5. test: off
  6. platform:
  7. - x64
  8. - x86
  9. environment:
  10. matrix:
  11. - CONDA: 36
  12. - CONDA: 27
  13. matrix:
  14. fast_finish: true # Stop remaining jobs after a job failure
  15. install:
  16. - ps: |
  17. if ($env:PLATFORM -eq "x64") { $env:CMAKE_ARCH = "x64" }
  18. if ($env:APPVEYOR_JOB_NAME -like "*Visual Studio 2017*") { $env:CMAKE_GENERATOR = "Visual Studio 15 2017" }
  19. else { $env:CMAKE_GENERATOR = "Visual Studio 14 2015" }
  20. if ($env:PYTHON) {
  21. if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
  22. $env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
  23. pip install --disable-pip-version-check --user --upgrade pip wheel
  24. pip install pytest numpy scipy
  25. } elseif ($env:CONDA) {
  26. if ($env:CONDA -eq "27") { $env:CONDA = "" }
  27. if ($env:PLATFORM -eq "x64") { $env:CONDA = "$env:CONDA-x64" }
  28. $env:PATH = "C:\Miniconda$env:CONDA\;C:\Miniconda$env:CONDA\Scripts\;$env:PATH"
  29. conda install -y -q pytest numpy scipy
  30. }
  31. - ps: |
  32. Start-FileDownload 'http://bitbucket.org/eigen/eigen/get/3.3.0.zip'
  33. 7z x 3.3.0.zip -y > $null
  34. $env:CMAKE_INCLUDE_PATH = "eigen-eigen-26667be4f70b"
  35. build_script:
  36. - cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%" -DPYBIND11_WERROR=ON
  37. - set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
  38. - cmake --build . --config Release --target pytest -- /v:m /logger:%MSBuildLogger%
  39. - cmake --build . --config Release --target test_cmake_build -- /v:m /logger:%MSBuildLogger%
  40. on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log