Skip to content
Snippets Groups Projects
Commit 1a9f7353c127 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: correctly generate documentation metrics

parent 2bd960321d8f
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,7 @@
if [[ "$CI" = "true" ]]; then
echo -e "# HELP odoo_scripts_create_documentation_module_error Number of module in error.\n# TYPE odoo_scripts_create_documentation_module_error gauge\nodoo_scripts_create_documentation_module_error ${module_error}\n" > metrics
for doc_dir in doc docs; do
[[ -e ${doc_dir}/_build/warnings.out ]] || echo -e "# HELP odoo_scripts_create_documentation_superproject_warnings Number of warnings in superproject.\n# TYPE odoo_scripts_create_documentation_superproject_warnings gauge\nodoo_scripts_create_documentation_superproject_warnings $(grep --count WARNING ${doc_dir}/_build/warnings.out)\n" >> metrics
[[ ! -e ${doc_dir}/_build/warnings.out ]] && echo -e "# HELP odoo_scripts_create_documentation_superproject_warnings Number of warnings in superproject.\n# TYPE odoo_scripts_create_documentation_superproject_warnings gauge\nodoo_scripts_create_documentation_superproject_warnings $(grep --count WARNING ${doc_dir}/_build/warnings.out)\n" >> metrics
done
fi
......
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