Debian Codegraph @

.circleci/config.yml

raw
1 version: 2.0
2 jobs:
3 ### With all third parties
4
5 examples:
6 docker:
7 # cf. https://github.com/GUDHI/gudhi-deploy/blob/main/Dockerfile_for_circleci_image
8 - image: gudhi/ci_for_gudhi:2024.12.01
9 steps:
10 - checkout
11 - run:
12 name: Checkout submodules
13 command: |
14 git submodule sync
15 git submodule update --init
16 - run:
17 name: Build and test examples
18 command: |
19 mkdir build
20 cd build
21 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF ..
22 make all
23 ctest --output-on-failure
24
25 tests:
26 docker:
27 - image: gudhi/ci_for_gudhi:2024.12.01
28 steps:
29 - checkout
30 - run:
31 name: Checkout submodules
32 command: |
33 git submodule sync
34 git submodule update --init
35 - run:
36 name: Build and test unitary tests
37 command: |
38 mkdir build
39 cd build
40 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF ..
41 make all
42 ctest --output-on-failure
43
44 debug_tests:
45 docker:
46 - image: gudhi/ci_for_gudhi:2024.12.01
47 steps:
48 - checkout
49 - run:
50 name: Checkout submodules
51 command: |
52 git submodule sync
53 git submodule update --init
54 - run:
55 name: Build and test unitary tests
56 command: |
57 mkdir build
58 cd build
59 cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=-fsanitize=address -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF ..
60 make all
61 ctest --output-on-failure
62
63 utils:
64 docker:
65 - image: gudhi/ci_for_gudhi:2024.12.01
66 steps:
67 - checkout
68 - run:
69 name: Checkout submodules
70 command: |
71 git submodule sync
72 git submodule update --init
73 - run:
74 name: Build and test utilities
75 command: |
76 mkdir build
77 cd build
78 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=OFF ..
79 make all
80 ctest --output-on-failure
81
82 python:
83 docker:
84 - image: gudhi/ci_for_gudhi:2024.12.01
85 resource_class: large # Delaunay complex requires about 5 Gb of RAM to compile
86 steps:
87 - checkout
88 - run:
89 name: Checkout submodules
90 command: |
91 git submodule sync
92 git submodule update --init
93 - run:
94 name: Build and test python module. Generates and tests the python documentation
95 command: |
96 mkdir build
97 cd build
98 cmake -DWITH_GUDHI_THIRD_PARTY=OFF -DUSER_VERSION_DIR=version ..
99 make user_version
100 cd version
101 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON -DWITH_GUDHI_REMOTE_TEST=ON .
102 cd python
103 python setup.py build_ext --inplace
104 ctest --output-on-failure
105 make sphinx
106 cp -R sphinx /tmp/sphinx
107 python setup.py install
108 python setup.py clean --all
109 python -B -m pytest test/*.py --cov-report html --cov=gudhi
110 cp -R htmlcov /tmp/htmlcov
111 - store_artifacts:
112 path: /tmp/sphinx
113 destination: sphinx
114 - store_artifacts:
115 path: /tmp/htmlcov
116 destination: htmlcov
117
118 doxygen:
119 docker:
120 - image: gudhi/doxygen_for_gudhi:2024.12.01
121 steps:
122 - checkout
123 - run:
124 name: Checkout submodules
125 command: |
126 git submodule sync
127 git submodule update --init
128 - run:
129 name: Generates the C++ documentation with doxygen
130 command: |
131 mkdir build
132 cd build
133 cmake -DWITH_GUDHI_THIRD_PARTY=OFF -DUSER_VERSION_DIR=version ..
134 make user_version
135 cd version
136 mkdir build
137 cd build
138 cmake -DWITH_GUDHI_THIRD_PARTY=OFF ..
139 make doxygen
140 grep warning doxygen.log || true # No need to test the result of this command
141 cp doxygen.log html/
142 cp -R html /tmp/doxygen
143
144 - store_artifacts:
145 path: /tmp/doxygen
146 destination: doxygen
147
148 bibliography:
149 docker:
150 - image: gudhi/doxygen_for_gudhi:2024.12.01
151 steps:
152 - checkout
153 - run:
154 name: Checkout submodules
155 command: |
156 git submodule sync
157 git submodule update --init
158 - run:
159 name: Test the LaTeX bibliography files
160 command: |
161 mkdir build
162 cd build
163 cmake -DWITH_GUDHI_THIRD_PARTY=OFF -DUSER_VERSION_DIR=version ..
164 cd biblio/test
165 latexmk -pdf -interaction=nonstopmode test_biblio.tex
166 latexmk -pdf -interaction=nonstopmode test_gudhi_citation.tex
167
168 ### With all third parties, except CGAL and Eigen
169
170 examples_without_cgal_eigen:
171 docker:
172 # cf. https://github.com/GUDHI/gudhi-deploy/blob/main/Dockerfile_for_circleci_image_without_cgal
173 - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01
174 steps:
175 - checkout
176 - run:
177 name: Checkout submodules
178 command: |
179 git submodule sync
180 git submodule update --init
181 - run:
182 name: Build and test examples without cgal and eigen
183 command: |
184 mkdir build
185 cd build
186 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF ..
187 make all
188 ctest --output-on-failure
189
190 tests_without_cgal_eigen:
191 docker:
192 - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01
193 steps:
194 - checkout
195 - run:
196 name: Checkout submodules
197 command: |
198 git submodule sync
199 git submodule update --init
200 - run:
201 name: Build and test unitary tests without cgal and eigen
202 command: |
203 mkdir build
204 cd build
205 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF ..
206 make all
207 ctest --output-on-failure
208
209 utils_without_cgal_eigen:
210 docker:
211 - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01
212 steps:
213 - checkout
214 - run:
215 name: Checkout submodules
216 command: |
217 git submodule sync
218 git submodule update --init
219 - run:
220 name: Build and test utilities without cgal and eigen
221 command: |
222 mkdir build
223 cd build
224 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=OFF ..
225 make all
226 ctest --output-on-failure
227
228 python_without_cgal_eigen:
229 docker:
230 - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01
231 steps:
232 - checkout
233 - run:
234 name: Checkout submodules
235 command: |
236 git submodule sync
237 git submodule update --init
238 - run:
239 name: Build and test python module without cgal and eigen
240 command: |
241 mkdir build
242 cd build
243 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON ..
244 cd src/python
245 python setup.py build_ext --inplace
246 ctest --output-on-failure
247
248 ### With all third parties, except CGAL
249
250 examples_without_cgal:
251 docker:
252 - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01
253 steps:
254 - checkout
255 - run:
256 name: Checkout submodules
257 command: |
258 git submodule sync
259 git submodule update --init
260 - run:
261 name: Build and test examples without cgal
262 command: |
263 cur_dir=`pwd`
264 cd /eigen-3.4.0
265 mkdir build
266 cd build
267 cmake ..
268 make install
269 cd $cur_dir
270 mkdir build
271 cd build
272 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=ON -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF ..
273 make all
274 ctest --output-on-failure
275
276 tests_without_cgal:
277 docker:
278 - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01
279 steps:
280 - checkout
281 - run:
282 name: Checkout submodules
283 command: |
284 git submodule sync
285 git submodule update --init
286 - run:
287 name: Build and test unitary tests without cgal
288 command: |
289 cur_dir=`pwd`
290 cd /eigen-3.4.0
291 mkdir build
292 cd build
293 cmake ..
294 make install
295 cd $cur_dir
296 mkdir build
297 cd build
298 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=ON -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=OFF ..
299 make all
300 ctest --output-on-failure
301
302 utils_without_cgal:
303 docker:
304 - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01
305 steps:
306 - checkout
307 - run:
308 name: Checkout submodules
309 command: |
310 git submodule sync
311 git submodule update --init
312 - run:
313 name: Build and test utilities without cgal
314 command: |
315 cur_dir=`pwd`
316 cd /eigen-3.4.0
317 mkdir build
318 cd build
319 cmake ..
320 make install
321 cd $cur_dir
322 mkdir build
323 cd build
324 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_TEST=OFF -DWITH_GUDHI_UTILITIES=ON -DWITH_GUDHI_PYTHON=OFF ..
325 make all
326 ctest --output-on-failure
327
328 python_without_cgal:
329 docker:
330 - image: gudhi/ci_for_gudhi_wo_cgal:2024.12.01
331 steps:
332 - checkout
333 - run:
334 name: Checkout submodules
335 command: |
336 git submodule sync
337 git submodule update --init
338 - run:
339 name: Build and test python module without cgal
340 command: |
341 cur_dir=`pwd`
342 cd /eigen-3.4.0
343 mkdir build
344 cd build
345 cmake ..
346 make install
347 cd $cur_dir
348 mkdir build
349 cd build
350 cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_EXAMPLE=OFF -DWITH_GUDHI_UTILITIES=OFF -DWITH_GUDHI_PYTHON=ON ..
351 cd src/python
352 python setup.py build_ext --inplace
353 ctest --output-on-failure
354
355 workflows:
356 version: 2
357 build:
358 jobs:
359 - examples_without_cgal_eigen
360 - tests_without_cgal_eigen
361 - utils_without_cgal_eigen
362 - python_without_cgal_eigen
363 - examples_without_cgal
364 - tests_without_cgal
365 - utils_without_cgal
366 - python_without_cgal
367 - examples
368 - tests
369 - debug_tests
370 - utils
371 - python
372 - doxygen
373 - bibliography