|
1 | 1 | version: 1.0.{build} |
2 | | -os: Visual Studio 2015 |
| 2 | +image: |
| 3 | +- Visual Studio 2017 |
| 4 | +- Visual Studio 2015 |
3 | 5 | test: off |
| 6 | +skip_branch_with_pr: true |
| 7 | +build: |
| 8 | + parallel: true |
4 | 9 | platform: |
5 | | -- x86 |
6 | 10 | - x64 |
| 11 | +- x86 |
7 | 12 | environment: |
8 | 13 | matrix: |
9 | | - - CONDA: 27 |
10 | | - - CONDA: 35 |
| 14 | + - PYTHON: 36 |
| 15 | + CPP: 14 |
| 16 | + CONFIG: Debug |
| 17 | + - PYTHON: 27 |
| 18 | + CPP: 14 |
| 19 | + CONFIG: Debug |
| 20 | + - CONDA: 36 |
| 21 | + CPP: latest |
| 22 | + CONFIG: Release |
| 23 | +matrix: |
| 24 | + exclude: |
| 25 | + - image: Visual Studio 2015 |
| 26 | + platform: x86 |
| 27 | + - image: Visual Studio 2015 |
| 28 | + CPP: latest |
| 29 | + - image: Visual Studio 2017 |
| 30 | + CPP: latest |
| 31 | + platform: x86 |
11 | 32 | install: |
12 | 33 | - ps: | |
13 | 34 | if ($env:PLATFORM -eq "x64") { $env:CMAKE_ARCH = "x64" } |
| 35 | + if ($env:APPVEYOR_JOB_NAME -like "*Visual Studio 2017*") { |
| 36 | + $env:CMAKE_GENERATOR = "Visual Studio 15 2017" |
| 37 | + $env:CMAKE_INCLUDE_PATH = "C:\Libraries\boost_1_64_0" |
| 38 | + $env:CXXFLAGS = "-permissive-" |
| 39 | + } else { |
| 40 | + $env:CMAKE_GENERATOR = "Visual Studio 14 2015" |
| 41 | + } |
14 | 42 | if ($env:PYTHON) { |
15 | 43 | if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" } |
16 | 44 | $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 |
| 45 | + python -W ignore -m pip install --upgrade pip wheel |
| 46 | + python -W ignore -m pip install pytest numpy --no-warn-script-location |
19 | 47 | } elseif ($env:CONDA) { |
20 | 48 | if ($env:CONDA -eq "27") { $env:CONDA = "" } |
21 | 49 | if ($env:PLATFORM -eq "x64") { $env:CONDA = "$env:CONDA-x64" } |
22 | 50 | $env:PATH = "C:\Miniconda$env:CONDA\;C:\Miniconda$env:CONDA\Scripts\;$env:PATH" |
| 51 | + $env:PYTHONHOME = "C:\Miniconda$env:CONDA" |
| 52 | + conda --version |
23 | 53 | conda install -y -q pytest numpy scipy |
24 | 54 | } |
25 | 55 | - 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" |
| 56 | + Start-FileDownload 'http://bitbucket.org/eigen/eigen/get/3.3.3.zip' |
| 57 | + 7z x 3.3.3.zip -y > $null |
| 58 | + $env:CMAKE_INCLUDE_PATH = "eigen-eigen-67e894c6cd8f;$env:CMAKE_INCLUDE_PATH" |
29 | 59 | build_script: |
30 | | -- cmake -A "%CMAKE_ARCH%" -DPYBIND11_WERROR=ON |
| 60 | +- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%" |
| 61 | + -DPYBIND11_CPP_STANDARD=/std:c++%CPP% |
| 62 | + -DPYBIND11_WERROR=ON |
| 63 | + -DDOWNLOAD_CATCH=ON |
| 64 | + -DCMAKE_SUPPRESS_REGENERATION=1 |
| 65 | + . |
31 | 66 | - set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" |
32 | | -- cmake --build . --config Release --target pytest -- /v:m /logger:%MSBuildLogger% |
33 | | -- cmake --build . --config Release --target test_install -- /v:m /logger:%MSBuildLogger% |
| 67 | +- cmake --build . --config %CONFIG% --target pytest -- /m /v:m /logger:%MSBuildLogger% |
| 68 | +- cmake --build . --config %CONFIG% --target cpptest -- /m /v:m /logger:%MSBuildLogger% |
| 69 | +- if "%CPP%"=="latest" (cmake --build . --config %CONFIG% --target test_cmake_build -- /m /v:m /logger:%MSBuildLogger%) |
| 70 | +on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log* |
0 commit comments