Skip to content
Snippets Groups Projects
Commit 6ae861bc authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Merge branch 'dox-warnings-limit' into 'master'

[ci] Doxygen warnings threshold

See merge request ogs/ogs!3562
parents 34323e8b 9f504d93
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ class LocalToGlobalIndexMap final
{
// Enables using std::make_unique with private constructors from within
// member functions of LocalToGlobalIndexMap. Cf.
// https://seanmiddleditch.com/enabling-make-unique-with-private-constructors/
// https://web.archive.org/web/20210302195245/https://seanmiddleditch.com/enabling-make-unique-with-private-constructors/
struct ConstructorTag
{
explicit ConstructorTag() = default;
......
......@@ -14,6 +14,8 @@ build docs:
retry:
max: 2
when: runner_system_failure
variables:
DOX_WARNINGS_THRESHOLD: 16
before_script:
# HACK to easier linking to the generated pages
- echo '<meta http-equiv="REFRESH" content="0;URL=build/docs/index.html">' >> Doxygen.html
......@@ -23,7 +25,13 @@ build docs:
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_USE_CONAN=OFF -DOGS_USE_POETRY=OFF -DOGS_BUILD_PROCESSES=SteadyStateDiffusion
- cmake --build . --target doc > >(tee make-docs.output)
- cat DoxygenWarnings.log|grep -v 'too many nodes'
- echo "doxygen_warnings `cat DoxygenWarnings.log|grep warning:|grep -v 'too many nodes'|wc -l|xargs`" > metrics.txt
- NUM_DOX_WARNINGS=`cat DoxygenWarnings.log|grep warning:|grep -v 'too many nodes'|wc -l|xargs`
- echo "doxygen_warnings $NUM_DOX_WARNINGS" > metrics.txt
- |
if [[ ( "$NUM_DOX_WARNINGS" > "$DOX_WARNINGS_THRESHOLD" ) ]]; then
echo "Error: Number of Doxygen warnings exceeded threshold –> $NUM_DOX_WARNINGS > $DOX_WARNINGS_THRESHOLD"
exit 1
fi
- |
if [ "$DEPLOY" == "true" ]; then
if [ "$ON_MASTER" == "true" ]; then
......
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