-
Notifications
You must be signed in to change notification settings - Fork 29
/
.appveyor.yml
40 lines (32 loc) · 915 Bytes
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: 'build_{build}'
clone_depth: 10 # leave margin for ci skips
clone_folder: c:\projects\scope_guard
image: Visual Studio 2017
platform:
- x86
- x64
environment:
CATCH_DIR: c:\projects\catch
CATCH_REMOTE: https://github.com/catchorg/Catch2.git
CATCH_VERSION: v2.13.6
MSBUILD_OPTS: "/m:2 /p:Optimize=no /p:DebugSymbols=false"
install:
- git clone %CATCH_REMOTE% %CATCH_DIR%
- cd %CATCH_DIR%
- git checkout -q %CATCH_VERSION%
- mkdir build
- cd build
- cmake -DBUILD_TESTING:BOOL=FALSE ..
- cmake --build .
- cmake --build . --target install
- cd %APPVEYOR_BUILD_FOLDER% # reset current directory
build_script:
- mkdir build
- cd build
- cmake -Wdev -Werror=dev ..
- cmake --build . --config Debug -- %MSBUILD_OPTS%
test_script:
- cmake --build . --target RUN_TESTS --config Debug -- %MSBUILD_OPTS%
deploy: off
on_failure:
- type Testing\Temporary\LastTest.log