nameof_module/appveyor.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2018-03-27 16:05:59 +00:00
version: "{branch} #{build}"
2018-03-27 09:03:12 +00:00
image: Visual Studio 2017
platform: x64
configuration: Release
shallow_clone: true
matrix:
fast_finish: false
environment:
matrix:
- PLATFORM: x64
BUILDER: CMake
GENERATOR: "Visual Studio 15 2017 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- PLATFORM: x64
BUILDER: CMake
GENERATOR: "Visual Studio 14 2015 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
init:
- ps: 'Write-Host "Building GEOS branch: $env:APPVEYOR_REPO_BRANCH" -ForegroundColor Magenta'
before_build:
- ps: 'Write-Host "Running $env:BUILDER with $env:GENERATOR" -ForegroundColor Magenta'
2018-04-05 21:30:39 +00:00
- if exist build RMDIR /S /Q build
2018-04-02 11:33:25 +00:00
- if not exist build mkdir build
2018-03-28 08:54:21 +00:00
- cd build
- if "%BUILDER%"=="CMake" cmake.exe .. -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DTARGET_CPU=$PLATFORM
2018-03-27 09:03:12 +00:00
build_script:
- ps: 'Write-Host "Running $env:BUILDER:" -ForegroundColor Magenta'
- if "%BUILDER%"=="CMake" cmake --build . --config %CONFIGURATION%
test_script:
- ps: 'Write-Host "Running tests:" -ForegroundColor Magenta'
- if "%BUILDER%"=="CMake" ctest -V --output-on-failure -C %CONFIGURATION%