blob: d978a5daba2af20cc82613a9dc35fd71efc7e93e [file] [log] [blame]
Casey Carter33006022017-04-02 12:24:42 -07001shallow_clone: true
2
3platform:
4 - x86
5 - x64
6
7configuration:
8 - Debug
9 - Release
10
11image:
12 - Visual Studio 2015
13 - Visual Studio 2017
14
15cache:
Neil MacIntoshb2ee4842017-07-13 13:53:56 -070016 - C:\cmake-3.8.0-win32-x86
Casey Carter33006022017-04-02 12:24:42 -070017
18install:
Casey Carter33006022017-04-02 12:24:42 -070019 - ps: |
Neil MacIntoshb2ee4842017-07-13 13:53:56 -070020 if (![IO.File]::Exists("C:\cmake-3.8.0-win32-x86\bin\cmake.exe")) {
21 Start-FileDownload 'https://cmake.org/files/v3.8/cmake-3.8.0-win32-x86.zip'
22 7z x -y cmake-3.8.0-win32-x86.zip -oC:\
Casey Carter33006022017-04-02 12:24:42 -070023 }
Neil MacIntoshb2ee4842017-07-13 13:53:56 -070024 $env:PATH="C:\cmake-3.8.0-win32-x86\bin;$env:PATH"
Casey Carter33006022017-04-02 12:24:42 -070025
26before_build:
27 - ps: |
28 mkdir build
29 cd build
30 if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2015") {
31 $env:generator="Visual Studio 14 2015"
32 } else {
33 $env:generator="Visual Studio 15 2017"
34 }
35 if ($env:PLATFORM -eq "x64") {
36 $env:generator="$env:generator Win64"
37 }
38 echo generator="$env:generator"
39 cmake .. -G "$env:generator"
40
41build_script:
42 - cmake --build . --config %CONFIGURATION% -- /m /v:minimal
43
44test_script:
45 - ctest -j2
46
47deploy: off