-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
35 lines (31 loc) · 949 Bytes
/
.gitlab-ci.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
variables:
GTEST_COLOR: "yes"
build:
parallel:
matrix:
- COMPILER: gcc
VERSION: [14, 13]
- COMPILER: clang
VERSION: [19, 18]
image: registry.gitlab.com/offa/docker-images/${COMPILER}:${VERSION}
script:
- script/ci_setup.sh
- script/ci_build.sh -asan -ubsan
coverage:
image: registry.gitlab.com/offa/docker-images/gcc:14
script:
- script/ci_setup.sh
- script/ci_build.sh -cov
coverage: /^\s*lines:\s*\d+.\d+\%/
formatting:
image: docker:latest
variables:
CLANGFORMAT_VERSION: 17
services:
- docker:dind
before_script:
- apk add --no-cache git
- git clone --depth=1 https://github.com/DoozyX/clang-format-lint-action.git
- docker build -t clang-format-lint clang-format-lint-action
script:
- docker run --rm --workdir /src -v ${PWD}:/src clang-format-lint --clang-format-executable /clang-format/clang-format${CLANGFORMAT_VERSION} -r --exclude .git .