-
Notifications
You must be signed in to change notification settings - Fork 109
/
appveyor.yml
66 lines (56 loc) · 1.21 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '{build}'
branches:
only:
- master
clone_depth: 1
# Build configurations, for MSBuild as well as ctest.
configuration:
- Release
- MinSizeRel
- Debug
os:
- Visual Studio 2015
- Visual Studio 2017
# Win32 and x64 are CMake-compatible solution platform names.
# This allows us to pass %PLATFORM% to cmake -A.
platform:
- x64
- Win32
matrix:
exclude:
- os: Visual Studio 2015
platform: x64
configuration: MinSizeRel
- os: Visual Studio 2015
platform: Win32
configuration: Debug
- os: Visual Studio 2017
platform: Win32
configuration: Release
- os: Visual Studio 2017
platform: Win32
configuration: MinSizeRel
- os: Visual Studio 2017
platform: x64
configuration: Debug
install:
- set SRC_DIR=%CD%
- cmake --version
- git submodule sync --recursive
- git submodule update --init --recursive
- md build
- cd build
- set BUILD_DIR=%CD%
before_build:
- cd %BUILD_DIR%
- cmake -A%PLATFORM% %SRC_DIR%
# build with MSBuild
build:
project: build/cppcodec.sln
parallel: true
verbosity: normal
test_script:
- cd %BUILD_DIR%
- set CTEST_OUTPUT_ON_FAILURE=1
- ctest -C %CONFIGURATION% -VV
- test\%CONFIGURATION%\benchmark_cppcodec.exe