forked from DyssolTEC/Dyssol-open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
78 lines (67 loc) · 1.9 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
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
stages:
- build
- test
.compile_template: &compile_definition
stage: build
script:
- apt-get update && apt-get install -y cmake ccache build-essential libsundials-dev libhdf5-serial-dev libqt5opengl5-dev libgraphviz-dev clang
- export PATH="/usr/lib/ccache:$PATH"
- export CCACHE_BASEDIR="$PWD"
- export CCACHE_DIR="$PWD/ccache"
- ccache -s
- mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_INSTALL_PREFIX=../install .. && make && make install
- CTEST_OUTPUT_ON_FAILURE=1 make test
- ccache -s
.artifacts_template: &artifacts_definition
artifacts:
when: always
paths:
- install
- build
expire_in: 2 weeks
.test_template: &test_definition
stage: test
script:
- cd ./build
- make test
timeout: 30 minutes
deb_12-gcc:
<<: *artifacts_definition
<<: *compile_definition
image: debian:bookworm
deb_12-clang:
<<: *artifacts_definition
<<: *compile_definition
variables:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
image: debian:bookworm
deb_12-gcc-san:
<<: *artifacts_definition
<<: *compile_definition
variables:
CXXFLAGS: "-fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined"
image: debian:bookworm
deb_12-clang-san:
<<: *artifacts_definition
<<: *compile_definition
variables:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
CXXFLAGS: "-fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined"
image: debian:bookworm
ubu_20.04:
<<: *artifacts_definition
<<: *compile_definition
image: ubuntu:focal
before_script:
- apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:gladky-anton/sundials
ubu_22.04:
<<: *artifacts_definition
<<: *compile_definition
image: ubuntu:jammy
variables:
DEBIAN_FRONTEND: "noninteractive"
cache:
paths:
- ccache