blob: 688a92efca0a6b412a45cd893307ebf5b051f692 [file] [log] [blame]
Wenzel Jakobfab881c2015-10-18 17:04:24 +02001version: 1.0.{build}
2os: Visual Studio 2015
Wenzel Jakob42af9c22015-10-23 10:21:09 +02003test: off
Dean Moldovan3ac12752016-07-30 00:15:01 +02004platform:
5- x86
6- x64
Wenzel Jakob42af9c22015-10-23 10:21:09 +02007environment:
8 matrix:
Dean Moldovan3ac12752016-07-30 00:15:01 +02009 - CONDA: 27
10 - CONDA: 35
Wenzel Jakobfab881c2015-10-18 17:04:24 +020011install:
Dean Moldovan3ac12752016-07-30 00:15:01 +020012- 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
Dean Moldovana0c1ccf2016-08-12 13:50:00 +020018 pip install pytest numpy scipy
Dean Moldovan3ac12752016-07-30 00:15:01 +020019 } 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"
Dean Moldovana0c1ccf2016-08-12 13:50:00 +020023 conda install -y -q pytest numpy scipy
Dean Moldovan3ac12752016-07-30 00:15:01 +020024 }
25- ps: |
26 Start-FileDownload 'http://bitbucket.org/eigen/eigen/get/3.2.9.zip'
27 7z x 3.2.9.zip -y > $null
28 $env:CMAKE_INCLUDE_PATH = "eigen-eigen-dc6cfdf9bcec"
Wenzel Jakobfab881c2015-10-18 17:04:24 +020029build_script:
Dean Moldovan00a30092016-08-15 13:41:44 +020030- cmake -A "%CMAKE_ARCH%" -DPYBIND11_WERROR=ON
Dean Moldovan3ac12752016-07-30 00:15:01 +020031- set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
Dean Moldovana0c1ccf2016-08-12 13:50:00 +020032- cmake --build . --config Release --target pytest -- /v:m /logger:%MSBuildLogger%