This repository has been archived by the owner on Apr 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
141 lines (99 loc) · 5.14 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: 0.5.3.{build}
os: Visual Studio 2015
# Do not build on tags (GitHub only)
skip_tags: true
# branches to build
branches:
only:
- master
- dev
- deploy_artifacts
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
#platform:
# - x86
# - x64
environment:
CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Release
matrix:
- platform: x86
nhr_env_matrix: default
CMAKE_ARGS: -G"Visual Studio 14" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release
- platform: x86
nhr_env_matrix: no_get
CMAKE_ARGS: -G"Visual Studio 14" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_GET:BOOL=ON
- platform: x86
nhr_env_matrix: no_post
CMAKE_ARGS: -G"Visual Studio 14" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_POST:BOOL=ON
- platform: x86
nhr_env_matrix: no_post_data
CMAKE_ARGS: -G"Visual Studio 14" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_POST_DATA:BOOL=ON
- platform: x86
nhr_env_matrix: no_get_post
CMAKE_ARGS: -G"Visual Studio 14" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_GET:BOOL=ON -DNHR_OPT_NO_POST:BOOL=ON
- platform: x86
nhr_env_matrix: no_recv_chunks
CMAKE_ARGS: -G"Visual Studio 14" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_RECV_CHUNKS:BOOL=ON
- platform: x86
nhr_env_matrix: no_send_chunks
CMAKE_ARGS: -G"Visual Studio 14" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_SEND_CHUNKS:BOOL=ON
- platform: x86
nhr_env_matrix: no_gzip
CMAKE_ARGS: -G"Visual Studio 14" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_GZIP:BOOL=ON
- platform: x64
nhr_env_matrix: default
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release
- platform: x64
nhr_env_matrix: no_get
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_GET:BOOL=ON
- platform: x64
nhr_env_matrix: no_post
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_POST:BOOL=ON
- platform: x64
nhr_env_matrix: no_post_data
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_POST_DATA:BOOL=ON
- platform: x64
nhr_env_matrix: no_get_post
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_GET:BOOL=ON -DNHR_OPT_NO_POST:BOOL=ON
- platform: x64
nhr_env_matrix: no_recv_chunks
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_RECV_CHUNKS:BOOL=ON
- platform: x64
nhr_env_matrix: no_send_chunks
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_SEND_CHUNKS:BOOL=ON
- platform: x64
nhr_env_matrix: no_gzip
CMAKE_ARGS: -G"Visual Studio 14 Win64" -DNHR_OPT_APPVEYOR_CI=ON -DCMAKE_INSTALL_PREFIX:PATH=c:\dev\libnhr\libnhr-install-win-%PLATFORM% -DCMAKE_BUILD_TYPE=Release -DNHR_OPT_NO_GZIP:BOOL=ON
configuration: Release
# clone directory
clone_folder: c:\dev\libnhr
# scripts that run after cloning repository
install:
- cd c:\dev\libnhr
- md libnhr-install-win-%PLATFORM%
build:
parallel: true
verbosity: detailed
build_script:
- cd c:\dev\libnhr
- md build
- cd build
- cmake %CMAKE_ARGS% ..
- cmake --build . --config Release
- cmake --build . --config Release --target Install
- ctest
- cd ..
after_build:
- 7z a -t7z -mx=9 -xr!bin libnhr-win-%PLATFORM%-%nhr_env_matrix%-%APPVEYOR_REPO_BRANCH%-%APPVEYOR_BUILD_VERSION%.7z c:\dev\libnhr\libnhr-install-win-%PLATFORM%
artifacts:
- path: '*.7z'
deploy:
- provider: GitHub
release: $(appveyor_build_version)
description: 'Appveyor CI build artifacts. Compressed install path with binaries, libraries and configured headers'
auth_token:
secure: 9fCOXiEygRERkV9JN67Rqq6WFwdbSBIllYdZGYcSoFPj1oUAxk3aRi+bWv04l7M5
artifact: /.*\.7z/
draft: false
prerelease: true
on:
branch: deploy_artifacts