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
8141710e6aef
Commit
8141710e6aef
authored
3 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add debug logs
parent
1dd6157d01a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!38
🔊 add debug logs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
do_tests
+8
-0
8 additions, 0 deletions
do_tests
with
8 additions
and
0 deletions
do_tests
+
8
−
0
View file @
8141710e
...
...
@@ -21,8 +21,9 @@
# this is the same value as conf/drone/odoo.conf
if
[[
-e
"
${
project_home
}
/conf/drone/odoo.conf"
]]
;
then
echo
"
$DEBUG
Reading configuration from
${
project_home
}
/conf/drone/odoo.conf"
dbowner
=
$(
read_configuration_key
${
project_home
}
/conf/drone/odoo.conf options db_user
)
unaccent
=
$(
read_configuration_key
${
project_home
}
/conf/drone/odoo.conf options unaccent False
)
# this is the same value as conf/dev/odoo.conf
elif
[[
-e
"
${
project_home
}
/conf/dev/odoo.conf"
]]
;
then
...
...
@@ -24,8 +25,9 @@
dbowner
=
$(
read_configuration_key
${
project_home
}
/conf/drone/odoo.conf options db_user
)
unaccent
=
$(
read_configuration_key
${
project_home
}
/conf/drone/odoo.conf options unaccent False
)
# this is the same value as conf/dev/odoo.conf
elif
[[
-e
"
${
project_home
}
/conf/dev/odoo.conf"
]]
;
then
echo
"
$DEBUG
Reading configuration from
${
project_home
}
/conf/dev/odoo.conf"
dbowner
=
$(
read_configuration_key
${
project_home
}
/conf/dev/odoo.conf options db_user
)
unaccent
=
$(
read_configuration_key
${
project_home
}
/conf/dev/odoo.conf options unaccent False
)
else
...
...
@@ -29,6 +31,7 @@
dbowner
=
$(
read_configuration_key
${
project_home
}
/conf/dev/odoo.conf options db_user
)
unaccent
=
$(
read_configuration_key
${
project_home
}
/conf/dev/odoo.conf options unaccent False
)
else
echo
"
$DEBUG
Use default owner and unaccent"
dbowner
=
odoo
unaccent
=
False
fi
...
...
@@ -32,4 +35,5 @@
dbowner
=
odoo
unaccent
=
False
fi
echo
"
$DEBUG
Looking for modules to install"
modules_to_install
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list
)
}
...
...
@@ -35,2 +39,4 @@
modules_to_install
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list
)
}
echo
"
$DEBUG
Modules to install:
$modules_to_install
"
echo
"
$DEBUG
Looking value of fail_on_errors"
fail_on_errors
=
${
ODOO_SCRIPTS_FAIL_ON_ERRORS
-
$(
read_odoo_scripts_configuration_key fail_on_errors True
)
}
...
...
@@ -36,4 +42,5 @@
fail_on_errors
=
${
ODOO_SCRIPTS_FAIL_ON_ERRORS
-
$(
read_odoo_scripts_configuration_key fail_on_errors True
)
}
echo
"
$DEBUG
fail_on_errors=
$fail_on_errors
"
# argument handling
if
[[
$#
-gt
0
]]
;
...
...
@@ -61,6 +68,7 @@
ODOO_USER
=
""
fi
else
echo
"
$DEBUG
No argument provided"
PG_HOST
=
""
ODOO_HOST
=
""
PG_USER
=
""
...
...
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