echo"${RED}ERROR${RESET} - Documentation generation failed for $doc_dir (superproject)"
echo"${RED}FATAL${RESET} - Documentation generation failed for $doc_dir (superproject)"
((error++))
fi
done
...
...
@@ -137,4 +148,13 @@
popd
if[[$module_error-gt 0 ]];then
echo"${RED}ERROR${RESET} - $module_error module(s) with errors"
fi
# create a metrics file
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
[[-e doc*/_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*/_build/warnings.out)\n">> metrics