Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
edf702435fdc
Commit
edf702435fdc
authored
5 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
branch name need to be set after doing modules, otherwise the variable is overwritten
parent
05689c6ad1ba
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
create_documentation
+14
-13
14 additions, 13 deletions
create_documentation
with
14 additions
and
13 deletions
create_documentation
+
14
−
13
View file @
edf70243
...
...
@@ -30,19 +30,6 @@
pushd
$project_home
# determine branch name
if
[
-n
"
$DRONE_BRANCH
"
]
;
then
branch
=
"
$DRONE_BRANCH
"
elif
[
-e
".git"
]
;
then
branch
=
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
elif
[
-e
".hg"
]
;
then
branch
=
"
$(
hg
id
-b
)
"
else
echo
"
${
RED
}
WARN
${
RESET
}
- Branch name not found"
branch
=
"unknown"
fi
echo
"
${
YELLOW
}
INFO
${
RESET
}
- Branch name:
$branch
"
if
type
"python3"
>
/dev/null
;
then
odoo_modules
=
"
$(
python3
-B
-c
"import configparser ; c = configparser.ConfigParser() ; c.read('
${
project_home
}
/setup.cfg') ; print (c.has_option('odoo_scripts', 'modules') and ' '.join(c.get('odoo_scripts', 'modules').split()) or '')"
)
"
...
...
@@ -108,6 +95,20 @@
done
# super project documentation
# determine branch name
if
[
-n
"
$DRONE_BRANCH
"
]
;
then
branch
=
"
$DRONE_BRANCH
"
elif
[
-e
".git"
]
;
then
branch
=
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
elif
[
-e
".hg"
]
;
then
branch
=
"
$(
hg
id
-b
)
"
else
echo
"
${
RED
}
WARN
${
RESET
}
- Branch name not found"
branch
=
"unknown"
fi
echo
"
${
YELLOW
}
INFO
${
RESET
}
- Branch name:
$branch
"
for
doc_dir
in
doc docs
;
do
if
[[
-d
"
$doc_dir
"
]]
;
then
pushd
$doc_dir
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment