forked from guangie88/spdlog_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (35 loc) · 1.2 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
version: 0.3.3-pre.{build}
image:
- Visual Studio 2015
- Visual Studio 2017
platform:
- Win32
- x64
configuration:
- Debug
- Release
branches:
only:
- master
build:
parallel: true
matrix:
fast_finish: true
environment:
global:
PROJECT_NAME: spdlog_setup
build_script:
- git rev-parse HEAD
- git submodule update --init --recursive
- mkdir build
- cd build
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" set CMAKE_GENERATOR_VS=Visual Studio 14 2015
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" set CMAKE_GENERATOR_VS=Visual Studio 15 2017
- if "%PLATFORM%"=="Win32" set CMAKE_GENERATOR_NAME=%CMAKE_GENERATOR_VS%
- if "%PLATFORM%"=="x64" set CMAKE_GENERATOR_NAME=%CMAKE_GENERATOR_VS% Win64
- cmake .. -G "%CMAKE_GENERATOR_NAME%" -DSPDLOG_SETUP_INCLUDE_UNIT_TESTS=ON -DCMAKE_INSTALL_PREFIX:PATH=install
- cmake --build . --config %CONFIGURATION% --target install
- ctest -R spdlog_setup_unit_test -V
- cmake .. -G "%CMAKE_GENERATOR_NAME%" -DSPDLOG_SETUP_INCLUDE_UNIT_TESTS=ON -DSPDLOG_SETUP_CPPTOML_EXTERNAL=ON -DCMAKE_INSTALL_PREFIX:PATH=install
- cmake --build . --config %CONFIGURATION% --target install
- ctest -R spdlog_setup_unit_test -V