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

Allow setting documentation name for create_documentation

Default using project name from CI/DRONE, and default to directory project name as a last resort.
:ambulance: fix that last point as it was using project_name_from_home instead of the variable of the same name
parent 21f08d020591
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
# - openerp to be installed # - openerp to be installed
# #
# Version 2.7 # Version 3.0
here=$(dirname $0) here=$(dirname $0)
project_home=$(cd $here && cd .. && echo $PWD) project_home=$(cd $here && cd .. && echo $PWD)
project_name_from_home=$(basename $project_home) project_name_from_home=$(basename $project_home)
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
here=$(dirname $0) here=$(dirname $0)
project_home=$(cd $here && cd .. && echo $PWD) project_home=$(cd $here && cd .. && echo $PWD)
project_name_from_home=$(basename $project_home) project_name_from_home=$(basename $project_home)
project_name=${DRONE_REPO_NAME:-project_name_from_home} project_name=${DOC_PROJECT_NAME:-${CI_PROJECT_NAME:-${DRONE_REPO_NAME:-$project_name_from_home}}}
languages=(${LANGUAGES:-en}) languages=(${LANGUAGES:-en})
format=html format=html
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
[bumpversion:file:VERSION] [bumpversion:file:VERSION]
[bumpversion:file:create_documentation]
[bumpversion:file:do_tests] [bumpversion:file:do_tests]
[bumpversion:file:run_tests] [bumpversion:file:run_tests]
......
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