Brian Silverman | a6f7ce0 | 2018-07-07 15:04:00 -0700 | [diff] [blame] | 1 | shallow_clone: true |
| 2 | |
| 3 | platform: |
| 4 | - x86 |
| 5 | - x64 |
| 6 | |
| 7 | configuration: |
| 8 | - Debug |
| 9 | - Release |
| 10 | |
| 11 | image: |
| 12 | - Visual Studio 2015 |
| 13 | - Visual Studio 2017 |
| 14 | |
| 15 | environment: |
| 16 | matrix: |
| 17 | - GSL_CXX_STANDARD: 14 |
| 18 | - GSL_CXX_STANDARD: 17 |
| 19 | |
| 20 | matrix: |
| 21 | exclude: |
| 22 | - image: Visual Studio 2015 |
| 23 | GSL_CXX_STANDARD: 17 |
| 24 | |
| 25 | cache: |
| 26 | - C:\cmake-3.8.0-win32-x86 |
| 27 | |
| 28 | install: |
| 29 | - ps: | |
| 30 | if (![IO.File]::Exists("C:\cmake-3.8.0-win32-x86\bin\cmake.exe")) { |
| 31 | Start-FileDownload 'https://cmake.org/files/v3.8/cmake-3.8.0-win32-x86.zip' |
| 32 | 7z x -y cmake-3.8.0-win32-x86.zip -oC:\ |
| 33 | } |
| 34 | $env:PATH="C:\cmake-3.8.0-win32-x86\bin;$env:PATH" |
| 35 | |
| 36 | before_build: |
| 37 | - ps: | |
| 38 | mkdir build |
| 39 | cd build |
| 40 | |
| 41 | if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2015") { |
| 42 | $env:generator="Visual Studio 14 2015" |
| 43 | } else { |
| 44 | $env:generator="Visual Studio 15 2017" |
| 45 | } |
| 46 | if ($env:PLATFORM -eq "x64") { |
| 47 | $env:generator="$env:generator Win64" |
| 48 | } |
| 49 | echo generator="$env:generator" |
| 50 | cmake .. -G "$env:generator" -DGSL_CXX_STANDARD="$env:GSL_CXX_STANDARD" |
| 51 | |
| 52 | build_script: |
| 53 | - cmake --build . --config %CONFIGURATION% -- /m /v:minimal |
| 54 | |
| 55 | test_script: |
| 56 | - ctest -j2 |
| 57 | |
| 58 | deploy: off |