2018-08-19 14:43:07 +00:00
|
|
|
shallow_clone: true
|
2016-11-19 20:16:20 +00:00
|
|
|
|
2018-08-19 14:43:07 +00:00
|
|
|
platform:
|
|
|
|
- x86
|
|
|
|
- x64
|
2018-08-19 14:15:16 +00:00
|
|
|
|
2018-08-19 14:43:07 +00:00
|
|
|
configuration:
|
|
|
|
- Debug
|
|
|
|
- Release
|
2018-08-19 14:15:16 +00:00
|
|
|
|
2018-08-19 14:43:07 +00:00
|
|
|
image:
|
|
|
|
- Visual Studio 2015
|
|
|
|
- Visual Studio 2017
|
2018-08-19 00:34:41 +00:00
|
|
|
|
2018-08-19 15:33:15 +00:00
|
|
|
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"
|
|
|
|
|
2018-08-19 14:15:16 +00:00
|
|
|
before_build:
|
2018-08-19 14:43:07 +00:00
|
|
|
- ps: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2018-08-19 15:31:36 +00:00
|
|
|
|
2018-08-19 14:59:37 +00:00
|
|
|
if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2015") {
|
2018-08-19 14:43:07 +00:00
|
|
|
$env:generator="Visual Studio 14 2015"
|
2018-08-19 15:31:36 +00:00
|
|
|
} else {
|
2018-08-19 14:43:07 +00:00
|
|
|
$env:generator="Visual Studio 15 2017"
|
|
|
|
}
|
|
|
|
if ($env:PLATFORM -eq "x64") {
|
|
|
|
$env:generator="$env:generator Win64"
|
|
|
|
}
|
|
|
|
echo generator="$env:generator"
|
2018-08-19 15:43:24 +00:00
|
|
|
cmake .. -G "$env:generator" -DGLM_QUIET=ON -DGLM_TEST_ENABLE=ON
|
2018-08-19 14:15:16 +00:00
|
|
|
|
|
|
|
build_script:
|
2018-08-19 14:43:07 +00:00
|
|
|
- cmake --build . --config %CONFIGURATION% -- /m /v:minimal
|
|
|
|
|
|
|
|
test_script:
|
2018-08-19 14:55:22 +00:00
|
|
|
- ctest -j4
|
2018-08-19 00:19:59 +00:00
|
|
|
|
2018-08-19 14:43:07 +00:00
|
|
|
deploy: off
|