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

:pencil: also create documentation from odoo_modules directory

parent 7692f538c5fb
No related branches found
No related tags found
1 merge request!182📝 also create documentation from odoo_modules directory
......@@ -7,7 +7,7 @@
# - openerp to be installed
#
# Version 20.0.0
# Version 20.0.1
here=$(dirname $0)
source $here/common
......@@ -21,6 +21,8 @@
error=0
typeset -a odoo_modules
# Remark: when running the CI, the configuration values from modules might be empty.
# (they are moved in odoo_modules instead)
odoo_modules=("${(@s/ /)$(read_odoo_scripts_expandable_configuration_key modules " ")}")
pushd $project_home
......@@ -39,6 +41,17 @@
fi
unset module_dir
done
# Add odoo_modules copied by docker_build_copy and only path available in CI
if [[ -d odoo_modules ]]; then
addons_path+=($(readlink -f odoo_modules))
typeset -a dirs
dirs=(odoo_modules/*/)
dirs=("${dirs[@]%/}")
for dir in $dirs; do
odoo_modules+=($(readlink -f $dir))
done
unset dirs
fi
export ODOO_ADDONS_PATH=${(j:,:)addons_path}
unset addons_path
......@@ -59,13 +72,5 @@
pushd $module_path
module=$(basename $module_path)
has_doc=""
if [ -e ".git" ] || [ -e "../.git" ]; then
branch="$(git rev-parse --abbrev-ref HEAD)"
elif [ -e ".hg" ]; then
branch="$(hg identify --branch)"
else
echo "${WARN} Branch name not found"
branch="default"
fi
for doc_dir in doc docs ; do
if [[ -d $doc_dir && -e $doc_dir/Makefile ]]; then
......@@ -70,5 +75,13 @@
for doc_dir in doc docs ; do
if [[ -d $doc_dir && -e $doc_dir/Makefile ]]; then
if [ -e ".git" ] || [ -e "../.git" ]; then
branch="$(git rev-parse --abbrev-ref HEAD)"
elif [ -e ".hg" ]; then
branch="$(hg identify --branch)"
else
echo "${WARN} Branch name not found"
branch="default"
fi
echo "${INFO} Branch name: $branch"
has_doc=True
echo ${INFO} Makefile found in $module_path/$doc_dir
......
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