Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] Allow to add server wide modules through environment variable #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rousseldenis
Copy link
Sponsor

No description provided.

@@ -8,6 +8,11 @@ set -ex

oca_wait_for_postgres

if [ -n "${SERVER_WIDE_MODULES}"]; then
WIDE_MODULES=${SERVER_WIDE_MODULES}
Copy link
Sponsor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if we should enhance this to ensure web and base are in the list and concatenate them or to make that in copier

@@ -21,5 +26,6 @@ unbuffer coverage run --include "${ADDONS_DIR}/*" --branch \
$(which odoo || which openerp-server) \
-d ${PGDATABASE} \
-i ${ADDONS} \
--load=${WIDE_MODULES}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simplify it by specifying a default to the env var.

Suggested change
--load=${WIDE_MODULES}
--load=${SERVER_WIDE_MODULES:-web,base}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants