Skip to content
Snippets Groups Projects
Commit 48277b1a authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[ci] check if examples are up-to-date

parent 7db377b1
No related branches found
No related tags found
1 merge request!3461Feature/ci test example up to dateness
......@@ -114,6 +114,7 @@ full-dune-master-gcc-cpp-20:
CXX_MAX_STANDARD: "20"
DUMUX_ENABLE_CPPCHECK: "true"
DUMUX_ENABLE_DOXYGEN_BUILD: "true"
DUMUX_CHECK_EXAMPLE_DOCS: "true"
##################################
# additional scheduled pipelines #
......
......@@ -101,6 +101,24 @@ cppcheck:
rules:
- if: $DUMUX_ENABLE_CPPCHECK == "true"
check-example-docs:
stage: linting
rules:
- if: $DUMUX_CHECK_EXAMPLE_DOCS == "true"
when: always
script:
- cd examples
- python3 generate_example_docs.py
- git diff . > example_diff.txt
- |
if [ -s example_diff.txt ]; then
cat example_diff.txt
echo "Example documentation is not up-to-date. Please rerun 'generate_example_docs.py'"
exit 1
fi
select tests:
stage: select
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment