~singpolyma/biboumi

ref: c70b97d761ffba40e1c494bd9a78b9b278fbcb97 biboumi/.gitlab-ci.yml -rw-r--r-- 5.4 KiB
c70b97d7 — louiz’ Use sphinx instead of pandoc, and add a deploy job 4 years ago
                                                                                
5eb5e9e0 louiz’
cf2d4fb6 louiz’
c70b97d7 louiz’
34d6c2bc louiz’
5eb5e9e0 louiz’
d799dc10 Florent Le Coz
ee9b7f55 louiz’
d799dc10 Florent Le Coz
7cc05ab4 louiz’
5b560078 louiz’
7cc05ab4 louiz’
41c23aab louiz’
24dc05dd louiz’
cf2d4fb6 louiz’
7cc05ab4 louiz’
4cd97f7e Florent Le Coz
dac21197 louiz’
d799dc10 Florent Le Coz
24dc05dd louiz’
5f5789a0 louiz’
6e7ee320 louiz’
dc5ad49b louiz’
cf2d4fb6 louiz’
595a4d6d louiz’
cf2d4fb6 louiz’
5f5789a0 louiz’
cf2d4fb6 louiz’
e0265c81 louiz’
cf2d4fb6 louiz’
5f5789a0 louiz’
cf2d4fb6 louiz’
e0265c81 louiz’
06094245 louiz’
5f5789a0 louiz’
06094245 louiz’
ca95f897 louiz’
2fe06ffa louiz’
ca95f897 louiz’
dd31b77c louiz’
7cc05ab4 louiz’
cf2d4fb6 louiz’
7cc05ab4 louiz’
dd31b77c louiz’
7cc05ab4 louiz’
5b560078 louiz’
cf2d4fb6 louiz’
7cc05ab4 louiz’
dd31b77c louiz’
7cc05ab4 louiz’
dd31b77c louiz’
cf2d4fb6 louiz’
7cc05ab4 louiz’
dd31b77c louiz’
7cc05ab4 louiz’
41c23aab louiz’
24dc05dd louiz’
cf2d4fb6 louiz’
7cc05ab4 louiz’
dd31b77c louiz’
7cc05ab4 louiz’
dd31b77c louiz’
cf2d4fb6 louiz’
7cc05ab4 louiz’
dd31b77c louiz’
7cc05ab4 louiz’
dd31b77c louiz’
24dc05dd louiz’
cf2d4fb6 louiz’
7cc05ab4 louiz’
dac21197 louiz’
ce2b8a15 louiz’
5f5789a0 louiz’
7f50a3c3 louiz’
ce2b8a15 louiz’
c046d2ea louiz’
ce2b8a15 louiz’
4860201d louiz’
daa7ea04 louiz’
4860201d louiz’
cf2d4fb6 louiz’
c6cfa69c louiz’
40e6a6a0 louiz’
7cc05ab4 louiz’
5f5789a0 louiz’
7cc05ab4 louiz’
cf2d4fb6 louiz’
7cc05ab4 louiz’
5f5789a0 louiz’
5477db79 louiz’
7f50a3c3 louiz’
cf2d4fb6 louiz’
5477db79 louiz’
dd31b77c louiz’
5f5789a0 louiz’
33162181 louiz’
dd31b77c louiz’
33162181 louiz’
06094245 louiz’
5f5789a0 louiz’
7f50a3c3 louiz’
06094245 louiz’
79383153 louiz’
7f50a3c3 louiz’
06094245 louiz’
e6b09eed louiz’
d421ebd7 louiz’
e6b09eed louiz’
5f5789a0 louiz’
9244624d louiz’
e6b09eed louiz’
9f77f241 louiz’
e6b09eed louiz’
5f5789a0 louiz’
5eb5e9e0 louiz’
07683df5 louiz’
5f5789a0 louiz’
5eb5e9e0 louiz’
5f5789a0 louiz’
5eb5e9e0 louiz’
cf2d4fb6 louiz’
5eb5e9e0 louiz’
9ce29fa7 louiz’
5eb5e9e0 louiz’
07683df5 louiz’
dc8f07a5 louiz’
f197e303 louiz’
5eb5e9e0 louiz’
97b52526 louiz’
5eb5e9e0 louiz’
70014a7f louiz’
5eb5e9e0 louiz’
4ec2e1f7 louiz’
d9811320 louiz’
5eb5e9e0 louiz’
4ec2e1f7 louiz’
5eb5e9e0 louiz’
e1ae1194 louiz’
94dd16cb louiz’
e1ae1194 louiz’
07683df5 louiz’
a209e77f louiz’
e1ae1194 louiz’
f671e5d7 louiz’
e1ae1194 louiz’
a5f73969 louiz’
ceb49636 louiz’
e1ae1194 louiz’
c70b97d7 louiz’
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
stages:
  - build     # Build in various conf, keeps the artifacts
  - test      # Use the build artifacts to run the tests
  - packaging # Publish some packages (rpm, deb…)
  - deploy    # Deploy things like the web doc
  - external  # Interact with some external service (coverity…)

before_script:
  - uname -a
  - whoami

variables:
  COMPILER: "g++"
  BUILD_TYPE: "Debug"
  BOTAN: "-DWITH_BOTAN=1"
  UDNS: "-DWITH_UDNS=1"
  SYSTEMD: "-DWITH_SYSTEMD=1"
  LIBIDN: "-DWITH_LIBIDN=1"
  SQLITE3: "-DWITH_SQLITE3=1"
  POSTGRESQL: "-WITH_POSTGRESQL=1"

#
## Build jobs
#

.template:basic_build: &basic_build
  stage: build
  tags:
    - docker
  script:
    - "echo Running cmake with the following parameters: -DCMAKE_CXX_COMPILER=${COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${BOTAN} ${UDNS} ${SYSTEMD} ${LIBIDN} ${SQLITE3} ${POSTGRESQL}"
    - mkdir build/
    - cd build/
    - cmake .. -DCMAKE_CXX_FLAGS="-Werror -Wno-psabi" -DCMAKE_CXX_COMPILER=${COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${BOTAN} ${UDNS} ${SYSTEMD} ${LIBIDN} ${SQLITE3} ${POSTGRESQL}
    - make everything -j$(nproc || echo 1)
  artifacts:
    expire_in: 2 weeks
    paths:
      - build/

.template:fedora_build: &fedora_build
  <<: *basic_build
  image: docker.louiz.org/louiz/biboumi/test-fedora:latest

build:fedora:
  <<: *fedora_build

build:debian:
  <<: *basic_build
  image: docker.louiz.org/louiz/biboumi/test-debian:latest

build:alpine:
  variables:
    SYSTEMD: "-DWITHOUT_SYSTEMD=1"
  <<: *basic_build
  image: docker.louiz.org/louiz/biboumi/test-alpine:latest

build:archlinux:
  <<: *basic_build
  only:
    - branches@louiz/biboumi
  when: manual
  tags:
    - armv7l
  artifacts:
    paths: []

build:no_botan:
  variables:
    BOTAN: "-DWITHOUT_BOTAN=1"
  <<: *fedora_build

build:no_udns:
  variables:
    UDNS: "-DWITHOUT_UDNS=1"
  <<: *fedora_build

build:no_libidn:
  variables:
    UDNS: "-DWITHOUT_UDNS=1"
  <<: *fedora_build

build:no_sqlite3:
  variables:
    SQLITE3: "-DWITHOUT_SQLITE3=1"
    TEST_POSTGRES_URI: "postgres@postgres/postgres"
  services:
    - postgres:latest
  <<: *fedora_build

build:no_db:
  variables:
    SQLITE3: "-DWITHOUT_SQLITE3=1"
    POSTGRESQL: "-DWITHOUT_POSTGRESQL=1"
  <<: *fedora_build

build:no_db_botan:
  variables:
    SQLITE3: "-DWITHOUT_SQLITE3=1"
    POSTGRESQL: "-DWITHOUT_POSTGRESQL=1"
    BOTAN: "-DWITHOUT_BOTAN=1"
  <<: *fedora_build

#
## Test jobs
#

.template:basic_test: &basic_test
  stage: test
  tags:
    - docker
  script:
    - cd build/
    - make check -j$(nproc || echo 1)
    - make e2e -j$(nproc || echo 1)
  artifacts:
    expire_in: 2 weeks
    paths:
      - build/coverage_test_suite/
      - build/coverage_e2e/
      - build/coverage_total/
      - build/coverage_e2e.info
    when: always
    name: $CI_PROJECT_NAME-test-$CI_JOB_ID

test:debian:
  image: docker.louiz.org/louiz/biboumi/test-debian:latest
  <<: *basic_test
  dependencies:
    - build:debian

test:fedora:
  image: docker.louiz.org/louiz/biboumi/test-fedora:latest
  <<: *basic_test
  script:
    - cd build/
    - make coverage_check -j$(nproc || echo 1)
    - make coverage_e2e -j$(nproc || echo 1)
    - make coverage
  dependencies:
    - build:fedora

test:no_udns:
  image: docker.louiz.org/louiz/biboumi/test-fedora:latest
  <<: *basic_test
  dependencies:
    - build:no_udns

test:alpine:
  image: docker.louiz.org/louiz/biboumi/test-alpine:latest
  <<: *basic_test
  dependencies:
    - build:alpine
  image: docker.louiz.org/louiz/biboumi/test-alpine:latest

test:freebsd:
  tags:
    - freebsd
  variables:
    GIT_STRATEGY: "clone"
    SYSTEMD: "-DWITHOUT_SYSTEMD=1"
  stage: test
  script:
    - mkdir build/
    - cd build/
    - cmake .. -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${BOTAN} ${UDNS} ${SYSTEMD} ${LIBIDN} ${SQLITE3}
    - make check
    - make e2e
  dependencies: []

#
## Packaging jobs
#

packaging:rpm:
  stage: packaging
  only:
    - master@louiz/biboumi
  tags:
    - docker
  allow_failure: true
  image: docker.louiz.org/louiz/biboumi/test-fedora:latest
  script:
    - cd build/
    - make rpm -j$(nproc || echo 1)
  artifacts:
    paths:
      - build/rpmbuild/RPMS
      - build/rpmbuild/SRPMS
    when: always
    name: $CI_PROJECT_NAME-rpm-$CI_BUILD_ID
  dependencies:
    - build:fedora

packaging:deb:
  stage: packaging
  only:
    - master@louiz/biboumi
    - debian@louiz/biboumi
  tags:
    - docker
  allow_failure: true
  image: docker.louiz.org/louiz/biboumi/packaging-debian:latest
  before_script: []
  script:
    - git checkout debian
    - git pull
    - git merge --no-commit --no-ff master
    - mk-build-deps
    - apt update -y
    - apt install -y ./biboumi-build-deps*.deb
    - debuild -b -us -uc
    - mv ../*.deb .
    - mv ../*.build .
    - mv ../*.buildinfo .
  dependencies: []
  artifacts:
    untracked: true
    name: $CI_PROJECT_NAME-deb-$CI_BUILD_ID

packaging:archlinux:
  stage: packaging
  only:
    - master@louiz/biboumi
  tags:
    - docker
  allow_failure: true
  image: docker.louiz.org/louiz/biboumi/packaging-archlinux:latest
  before_script: []
  script:
    - sudo pacman -Syuu --noconfirm
    - git clone https://aur.archlinux.org/biboumi-git.git
    - cd biboumi-git
    - makepkg -si --noconfirm
    - test -e /usr/bin/biboumi
  dependencies: []

#
# Deploy jobs
#

doc:
  stage: deploy
  only:
    - branches@louiz/biboumi
  tags:
    - www
  image: docker.louiz.org/louiz/biboumi/doc-builder
  script:
    - cd doc/
    - make html
    - rm -rf /www/latest
    - mv _build/html /www/latest
  dependencies: []