-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
75 lines (64 loc) · 1.98 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
67
68
69
70
71
72
73
74
75
# See http://msdn.microsoft.com/en-us/library/ms164311.aspx for
# command-line options to MSBuild.
# Speeding up a Visual Studio build.
# http://blogs.msdn.com/b/vcblog/archive/2011/01/05/damn-my-vc-project-is-building-slower-in-vs2010-what-do-i-do-now-a-step-by-step-guide.aspx
version: 'build-{build}-{branch}'
platform: x64
configuration:
- Release
image:
- Visual Studio 2017
build:
parallel: true
environment:
# Create expected SHELL variable for pipenv.
SHELL: "windows"
CTEST_OUTPUT_ON_FAILURE: "1"
matrix:
- GENERATOR: "MSYS Makefiles"
BUILDFLAGS: "VERBOSE=1"
CMAKEARGS: ""
TESTING_TARGET: "test"
PACKAGE_SOURCE: "1"
- GENERATOR: "Visual Studio 15 2017 Win64"
BUILDFLAGS: "/verbosity:normal"
CMAKEARGS: "-DCMAKE_TOOLCHAIN_FILE=C:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake"
TESTING_TARGET: "RUN_TESTS"
- GENERATOR: "Ninja"
BUILDFLAGS: "-v"
CMAKEARGS: ""
TESTING_TARGET: "test"
PACKAGE_SOURCE: "1"
init:
- set PATH=C:\msys64\MINGW64\bin;C:\msys64\usr\bin;%PATH%
- set PATH=C:\Python36;C:\Python36\Scripts;%PATH%
# Remove Python 2.7 from path
- set PATH=%PATH:C:\Python27;=%
- set PATH=%PATH:C:\Python27\Scripts;=%
install:
- '%APPVEYOR_BUILD_FOLDER%\.scripts\install.bat'
before_build:
- cd c:\projects\message
- python --version
- cmake --version
build_script:
- cmake -H. -Bbuild
-G"%GENERATOR%"
-DCMAKE_BUILD_TYPE=%CONFIGURATION%
-DCMAKE_INSTALL_PREFIX=C:\projects\software\message
%CMAKEARGS%
- cmake --build build
--target install
--config %CONFIGURATION%
-- %BUILDFLAGS%
- cmake --build build
--target %TESTING_TARGET%
--config %CONFIGURATION%
- if "%PACKAGE_SOURCE%"=="1" (
cmake --build build --target package_source --config %CONFIGURATION% -- %BUILDFLAGS%
)
- cmake --build build
--target package
--config %CONFIGURATION%
-- %BUILDFLAGS%
deploy: off