-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
66 lines (60 loc) · 1.46 KB
/
.gitlab-ci.yml
File metadata and controls
66 lines (60 loc) · 1.46 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
stages:
- build
- test
variables:
# No interactive timezone dialog for tzdata
DEBIAN_FRONTEND: noninteractive
# SAST
include:
- template: Jobs/SAST.gitlab-ci.yml
# Build
.build:
stage: build
before_script:
- apt-get update -yqq
- apt-get install -yqq build-essential cmake
- apt-get install -yqq libboost-all-dev libgdal-dev libopencv-dev
- apt-get install -yqq libopenmpi-dev
script:
- mkdir -p build
- cd build
- cmake ..
- make
build_noble:
extends: .build
image: ubuntu:24.04
build_jammy:
extends: .build
image: ubuntu:22.04
# Code Quality with CodeChecker
cq_codecheker:
stage: test
image: tmselte/evaluator:cpp-ubuntu-22.04
extends: .build
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
- cd ..
# Analyze the project
- >
CodeChecker analyze
--analyzers clangsa clang-tidy
--ctu
-o ./reports
./build/compile_commands.json
# Create the report file
- >
CodeChecker parse
--trim-path-prefix $(pwd)
-e codeclimate
-i .gitlab/codechecker_skip.lst
./reports > gl-code-quality-report.json || true
# Note: 'CodeChecker parse' would return a non-zero exit code when any issues found
- test -f gl-code-quality-report.json
artifacts:
expose_as: Code Quality Report
reports:
codequality: gl-code-quality-report.json
paths: [gl-code-quality-report.json]
expire_in: 2 weeks