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.

32 lines
1.1 KiB

  1. version: 1.0.{build}
  2. os: Visual Studio 2015
  3. test: off
  4. platform:
  5. - x86
  6. - x64
  7. environment:
  8. matrix:
  9. - CONDA: 27
  10. - CONDA: 35
  11. install:
  12. - ps: |
  13. if ($env:PLATFORM -eq "x64") { $env:CMAKE_ARCH = "x64" }
  14. if ($env:PYTHON) {
  15. if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
  16. $env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
  17. pip install --disable-pip-version-check --user --upgrade pip wheel
  18. pip install pytest numpy scipy
  19. } elseif ($env:CONDA) {
  20. if ($env:CONDA -eq "27") { $env:CONDA = "" }
  21. if ($env:PLATFORM -eq "x64") { $env:CONDA = "$env:CONDA-x64" }
  22. $env:PATH = "C:\Miniconda$env:CONDA\;C:\Miniconda$env:CONDA\Scripts\;$env:PATH"
  23. conda install -y -q pytest numpy scipy
  24. }
  25. - ps: |
  26. Start-FileDownload 'http://bitbucket.org/eigen/eigen/get/3.3.0.zip'
  27. 7z x 3.3.0.zip -y > $null
  28. $env:CMAKE_INCLUDE_PATH = "eigen-eigen-26667be4f70b"
  29. build_script:
  30. - cmake -A "%CMAKE_ARCH%" -DPYBIND11_WERROR=ON
  31. - set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
  32. - cmake --build . --config Release --target pytest -- /v:m /logger:%MSBuildLogger%