-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
50 lines (40 loc) · 1.64 KB
/
.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
41
42
43
44
45
46
47
48
49
50
# AppVeyor is very similar to travis, with some differences to comply with
# MS Windows builds. See https://www.appveyor.com/docs/build-configuration/
# for the full documentation of the a build configuration script. See
# https://www.appveyor.com/docs/appveyor-yml/ for a complete appveyor.yml
# full syntax reference.
version: 1.0.{build}
clone_folder: c:\dev\lib-template-cmake
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CMAKE_GENERATOR: "Visual Studio 14 2015"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Visual Studio 15 2017"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
init:
# Print some more system information after installing all build tools
- ps: echo "-------------------- BEGIN SYSTEM INFORMATION --------------------"
- ps: echo $env:CMAKE_GENERATOR
- ps: cmake --version
- ps: echo "-------------------- END SYSTEM INFORMATION --------------------"
install:
build:
build_script:
# Build the library
- ps: cd c:\dev\lib-template-cmake
- ps: md build
- ps: cd build
- ps: cmake -G"$env:CMAKE_GENERATOR" -DBUILD_TESTING:BOOL=ON -DCMAKE_CXX_FLAGS:STRING="/W4" ..
# Build the library for Release and Debug
- ps: cmake --build . --config Debug
- ps: cmake --build . --config Release
after_build:
# Install only release
- ps: cmake --build C:\dev\lib-template-cmake\build --config Release --target INSTALL
test_script:
- ps: ctest -C Debug -VV
- ps: ctest -C Release -VV