mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
21cb6bb8b0
* Added testing with std=c++17 for latest compilers Added running latest compilers with -std=c++17 option to CI the test matrix, Updated cmake configuration to allow passing c++ standard on the command line. * attempt to fix appveyor break * added clang6.0, removed c++17 tests for clang 5.0 * commented out tests for clang with c++17 die to issue #695 * Addresed comments
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
shallow_clone: true
|
|
|
|
platform:
|
|
- x86
|
|
- x64
|
|
|
|
configuration:
|
|
- Debug
|
|
- Release
|
|
|
|
image:
|
|
- Visual Studio 2015
|
|
- Visual Studio 2017
|
|
|
|
environment:
|
|
matrix:
|
|
- GSL_CXX_STANDARD: 14
|
|
- GSL_CXX_STANDARD: 17
|
|
|
|
matrix:
|
|
exclude:
|
|
- image: Visual Studio 2015
|
|
GSL_CXX_STANDARD: 17
|
|
|
|
cache:
|
|
- C:\cmake-3.8.0-win32-x86
|
|
|
|
install:
|
|
- ps: |
|
|
if (![IO.File]::Exists("C:\cmake-3.8.0-win32-x86\bin\cmake.exe")) {
|
|
Start-FileDownload 'https://cmake.org/files/v3.8/cmake-3.8.0-win32-x86.zip'
|
|
7z x -y cmake-3.8.0-win32-x86.zip -oC:\
|
|
}
|
|
$env:PATH="C:\cmake-3.8.0-win32-x86\bin;$env:PATH"
|
|
|
|
before_build:
|
|
- ps: |
|
|
mkdir build
|
|
cd build
|
|
|
|
if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2015") {
|
|
$env:generator="Visual Studio 14 2015"
|
|
} else {
|
|
$env:generator="Visual Studio 15 2017"
|
|
}
|
|
if ($env:PLATFORM -eq "x64") {
|
|
$env:generator="$env:generator Win64"
|
|
}
|
|
echo generator="$env:generator"
|
|
cmake .. -G "$env:generator" -DGSL_CXX_STANDARD="$env:GSL_CXX_STANDARD"
|
|
|
|
build_script:
|
|
- cmake --build . --config %CONFIGURATION% -- /m /v:minimal
|
|
|
|
test_script:
|
|
- ctest -j2
|
|
|
|
deploy: off
|