-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
40 lines (37 loc) · 1.26 KB
/
.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
36
37
38
39
40
image: debian:12-slim
variables:
GIT_SUBMODULE_STRATEGY: "recursive"
# Build with GCC / G++.
build_gcc:
stage: build
before_script:
- apt-get update && apt-get -y install catch cmake g++ libxml2-dev pkg-config
- export CC=gcc && export CXX=g++
script:
# Linting script also lints a lot of unrelated stuff (GUIs, archives, etc.)
# which would require a lot of more dependendencies (png, jpeg, freeglut, ...)
# that just blow up the number of installed packages, so no linting is done here
# for the moment. This may (or may not) change in the future.
# - ./ci/cpplint.sh
- mkdir ./build
- cd ./build
- cmake ../
- make -j4
- ctest -V
# Build with Clang / Clang++.
build_clang:
stage: build
before_script:
- apt-get update && apt-get -y install catch clang cmake libxml2-dev pkg-config
- export CC=clang && export CXX=clang++
script:
# Linting script also lints a lot of unrelated stuff (GUIs, archives, etc.)
# which would require a lot of more dependendencies (png, jpeg, freeglut, ...)
# that just blow up the number of installed packages, so no linting is done here
# for the moment. This may (or may not) change in the future.
# - ./ci/cpplint.sh
- mkdir ./build
- cd ./build
- cmake ../
- make -j4
- ctest -V