-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.gitlab-ci.yml
96 lines (85 loc) · 2.05 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
### Prototype build jobs ###
.build_script: &build_script
- mkdir -p build/
- cd build/
- echo $CMAKE_CMD
- $CMAKE_CMD
- ninja
.test_script: &test_script
- ctest -V
.build:
variables:
EXTRA_CMAKE_FLAGS: ""
before_script:
- export CMAKE_CMD="cmake -GNinja $EXTRA_CMAKE_FLAGS .."
script:
- *build_script
.build_and_test:
extends: .build
script:
- *build_script
- *test_script
### Tests ###
test:cpp14:debian:10:
extends: .build_and_test
needs: []
image: volcart/vcbuilder-debian:10_v1.static
variables:
EXTRA_CMAKE_FLAGS: "-DOPENABF_BUILD_TESTS=ON"
tags:
- docker
test:cpp14:debian:11:
extends: test:cpp14:debian:10
image: ghcr.io/educelab/ci-docker:11_v2.static
test:cpp17:debian:10:
extends: test:cpp14:debian:10
variables:
EXTRA_CMAKE_FLAGS: "-DOPENABF_BUILD_TESTS=ON -DCMAKE_CXX_STANDARD=17"
test:cpp17:debian:11:
extends: test:cpp17:debian:10
image: ghcr.io/educelab/ci-docker:11_v2.static
single_header_updated:
needs: []
image: python:3.11
script:
- python3 thirdparty/amalgamate/amalgamate.py -c single_include.json -s .
- changed=$(git diff --stat)
- if [[ "${changed}" != '' ]]; then echo "Files changed:" ${changed}; exit 1; fi
tags:
- docker
examples:debian:10:
extends: .build
needs: []
image: volcart/vcbuilder-debian:10_v1.static
variables:
EXTRA_CMAKE_FLAGS: "-DOPENABF_BUILD_EXAMPLES=ON"
tags:
- docker
examples:debian:11:
extends: .build
needs: []
image: ghcr.io/educelab/ci-docker:11_v2.static
variables:
EXTRA_CMAKE_FLAGS: "-DOPENABF_BUILD_EXAMPLES=ON"
tags:
- docker
### Docs ###
pages:
needs: []
image: debian:bullseye-backports
before_script:
- apt-get update
- apt-get install -y build-essential doxygen graphviz texlive ghostscript cmake libeigen3-dev
script:
- mkdir -p build/
- mkdir -p public/
- cmake -S . -B build/ -DOPENABF_BUILD_DOCS=ON
- cmake --build build/ --target docs
- mv build/docs/html/ public/docs/
artifacts:
paths:
- public
tags:
- docker
only:
- develop