-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
61 lines (55 loc) · 1.22 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
### Prototype build jobs ###
.build_script: &build_script
- cmake -S . -B build/ -GNinja $EXTRA_CMAKE_FLAGS
- cmake --build build/
.test_script: &test_script
- ctest -V --test-dir build/
.build:
variables:
EXTRA_CMAKE_FLAGS: ""
script:
- *build_script
.build_and_test:
extends: .build
script:
- *build_script
- *test_script
### Tests ###
test:debian:12:
extends: .build_and_test
stage: test
needs: []
image: ghcr.io/educelab/ci-docker:static.12.0
variables:
EXTRA_CMAKE_FLAGS: "-DEDUCE_CORE_BUILD_TESTS=ON"
tags:
- docker
examples:debian:12:
extends: .build
stage: test
needs: []
image: ghcr.io/educelab/ci-docker:static.12.0
variables:
EXTRA_CMAKE_FLAGS: "-DEDUCE_CORE_BUILD_EXAMPLES=ON"
tags:
- docker
### Docs ###
pages:
stage: deploy
image: ghcr.io/educelab/ci-docker:static.12.0
before_script:
- apt-get -y update
- apt-get install --fix-missing --fix-broken -y doxygen graphviz
script:
- mkdir -p build/
- mkdir -p public/
- cmake -S . -B build/ -DEDUCE_CORE_BUILD_DOCS=ON
- cmake --build build/ --target docs
- mv build/docs/html/ public/docs/
artifacts:
paths:
- public
tags:
- docker
only:
- develop