Repository navigation
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
155 lines (150 loc) · 5.21 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
155 lines (150 loc) · 5.21 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Use, modification, and distribution are
# subject to the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Copyright René Ferdinand Rivera Morell
trigger:
branches:
include:
- develop
- master
- feature/*
paths:
exclude:
- .circleci/*
- .cirrus.yml
- .drone.star
- .github/workflows/*
- .semaphore/*
- .travis.yml
- appveyor.yml
- README.*
pr:
branches:
include:
- develop
stages:
- template: ".ci/azp.yml"
parameters:
name: Core
toolsets:
- "gcc-16"
b2_tests:
- name: "GNU (info)"
dir: test
args: "--verbose-test -a predef-info cxxstd=03,11,14,17,20,23
cxxstd-dialect=gnu"
- name: "GNU (test)"
dir: test
args:
"--debug-configuration -a predef predef-headers cxxstd=03,11,14,17,20,23
cxxstd-dialect=gnu"
- name: "ISO (info)"
dir: test
args: "--verbose-test -a predef-info cxxstd=03,11,14,17,20,23
cxxstd-dialect=iso"
- name: "ISO (test)"
dir: test
args:
"--debug-configuration -a predef predef-headers cxxstd=03,11,14,17,20,23
cxxstd-dialect=iso"
- name: "ISO (warnings)"
dir: test
args:
"--debug-configuration -a predef predef-headers cxxstd=03,11,14,17,20,23
cxxstd-dialect=iso warnings=pedantic warnings-as-errors=on
cxxflags=-Woverloaded-virtual cxxflags=-Wshadow
cxxflags=-Wnon-virtual-dtor cxxflags=-Wzero-as-null-pointer-constant
cxxflags=-Wsign-promo cxxflags=-Wsign-compare
cxxflags=-Wsign-conversion cxxflags=-Wundef"
- template: ".ci/azp.yml"
parameters:
name: Compilers
depends_on: ["Core"]
b2_tests:
- name: "Info"
dir: test
args: "--verbose-test -a predef-info"
- name: "Test"
dir: test
args: "--debug-configuration -a predef predef-headers"
- template: ".ci/azp.yml"
parameters:
name: "Windows_UWP"
toolsets:
- "msvc-14.5"
depends_on: ["Core"]
b2_tests:
- name: "UWP DESKTOP"
dir: test
args: "--verbose-test -a address-model=64 define=_WIN32_WINNT=0x0A00
define=WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP"
- name: "UWP PHONE"
dir: test
args: "--verbose-test -a address-model=64 define=_WIN32_WINNT=0x0A00
define=WINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP"
- name: "UWP STORE"
dir: test
args: "--verbose-test -a address-model=64 define=_WIN32_WINNT=0x0A00
define=WINAPI_FAMILY=WINAPI_FAMILY_PC_APP"
- name: "UWP SERVER"
dir: test
args: "--verbose-test -a address-model=64 define=_WIN32_WINNT=0x0A00
define=WINAPI_FAMILY=WINAPI_FAMILY_SERVER"
- name: "UWP SYSTEM"
dir: test
args: "--verbose-test -a address-model=64 define=_WIN32_WINNT=0x0A00
define=WINAPI_FAMILY=WINAPI_FAMILY_SYSTEM"
- stage: WebsiteUpdate
displayName: "Website Update"
dependsOn: [Core, Compilers, Windows_UWP]
condition: and(in(variables['Build.SourceBranch'], 'refs/heads/master',
'refs/heads/develop'), eq(variables['Build.Repository.Name'],
'grafikrobot/hash-predef'))
jobs:
- job: Documentation
pool:
vmImage: "ubuntu-latest"
steps:
- task: UseRubyVersion@0
- bash: |
gem install asciidoctor
gem install rouge
displayName: "Install Doc Tools"
- bash: |
set -e
pushd ${HOME}
B2_URL=`wget --tries=3 -q -O - https://api.github.com/repos/bfgroup/b2/releases/latest | grep browser_download_url | grep 'macos-x86_64[.]bz2["]' | cut -d '"' -f 4`
wget -nv "${B2_URL}" -O b2.bz2
tar -jxvf b2.bz2
mv b2-* b2
popd
displayName: "Install B2"
- bash: |
rm -rf ${WEB_DIR}
git clone --verbose --branch gh-pages --depth 1 "https://${GH_TOKEN}github.com/grafikrobot/hash-predef.git" ${WEB_DIR} || exit 1
pushd ${WEB_DIR}
git rm --ignore-unmatch -r "${DOC_DIR}" || exit 1
mkdir -p "${DOC_DIR}" || exit 1
popd
displayName: "Clone Website"
env:
GH_TOKEN: $(GitHubToken)
WEB_DIR: website
DOC_DIR: manual/$(Build.SourceBranchName)
- bash: |
echo "using asciidoctor ;" > ${HOME}/user-config.jam
pushd doc
"${HOME}/b2/b2" --doc-dir=${WEB_DIR}/${DOC_DIR} html
git config user.email "doc-bot"
git config user.name "doc-bot"
cd ${WEB_DIR}/${DOC_DIR}
git add --verbose . || exit 1
git commit -m "Update documentation."
git push
popd
displayName: "Build & Publish"
env:
GH_TOKEN: $(GitHubToken)
WEB_DIR: website
DOC_DIR: manual/$(Build.SourceBranchName)