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

server_environment: running_env default to test (fix #44) #45

Merged
merged 3 commits into from
Apr 10, 2020

Conversation

simahawk
Copy link

@simahawk simahawk commented Apr 1, 2020

No description provided.

@simahawk simahawk changed the title server_environemnt: running_env default to dev (fix #44) server_environemnt: running_env default to test (fix #44) Apr 1, 2020
@simahawk simahawk added this to the 13.0 milestone Apr 1, 2020
@simahawk simahawk changed the title server_environemnt: running_env default to test (fix #44) server_environment: running_env default to test (fix #44) Apr 1, 2020
simahawk added a commit to simahawk/server-env that referenced this pull request Apr 1, 2020
This is not needed anymore since OCA#45
@simahawk
Copy link
Author

simahawk commented Apr 1, 2020

tests to be fixed. No time now, I'll get back ASAP.

simahawk added a commit to simahawk/server-env that referenced this pull request Apr 2, 2020
This is not needed anymore since OCA#45
simahawk added a commit to simahawk/server-env that referenced this pull request Apr 2, 2020
This is not needed anymore since OCA#45
@@ -41,8 +41,6 @@ install:
${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
# Requirements to test server_environment modules
- printf '[options]\n\nrunning_env = dev\n' > ${HOME}/.openerp_serverrc
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

🎉

@dreispt
Copy link
Sponsor Member

dreispt commented Apr 2, 2020

Tests need some love.

Copy link
Member

@bodedra bodedra left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

I still don't understand why this is "activated" by default without installing the module, but if working, OK for me.

I wish also that you use Doodba for deploying avoiding all these modules, but that's too much, hehe.

@simahawk
Copy link
Author

I squash and merge as it gets green again. Runbot is 🟠 only indeed.

@pedrobaeza pedrobaeza merged commit 44d7573 into OCA:13.0 Apr 10, 2020
@pedrobaeza
Copy link
Member

Ouch! I always squash on the fly for avoiding extra CIs. Sorry for being so impatient and not look to that. I just want to have green CIs ASAP 👼

@simahawk
Copy link
Author

I wish also that you use Doodba for deploying avoiding all these modules, but that's too much, hehe.

why would it help?

@pedrobaeza
Copy link
Member

pedrobaeza commented Apr 10, 2020

You won't need these modules with that deployment method.

Note that Doodba serves for production, staging and devel environments.

@simahawk
Copy link
Author

simahawk commented Apr 10, 2020

eh same here w/ our docker image. The point is: how do you deal w/ model / modules / params / whatever specific configurable variables?
This is not about odoo config only.

@pedrobaeza
Copy link
Member

pedrobaeza commented Apr 10, 2020

We have our scaffolding for that, that now has been powered-up with copier templating system. AFAIK, you have modules for:

  • mail configuration. We put it on the scaffolding.
  • different Odoo configurations. The same.
  • ir_config_parameter. We inject this through Ansible, as we consider this more a DevOps, but scaffolding can be expanded for that if you switch and consider it interesting 😉

Note that secrets are not hardcoded in the scaffolding.

@simahawk
Copy link
Author

we do the same, we have templates for them.
The point is, if you want to customize via env the behavior of a model you cannot do it w/ templating.
For instance, the mail server: https://github.com/OCA/server-env/blob/13.0/mail_environment/models/ir_mail_server.py#L12
And for secrets: this is already handled as well. You can have public vars and secret vars.

@pedrobaeza
Copy link
Member

Uhm, having Mailhog without configuring anything in our Doodba staging seems enough for us sincerely.

@dreispt
Copy link
Sponsor Member

dreispt commented Apr 10, 2020

Thank you!
Can this be backported to 12.0 please?

alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this pull request Apr 15, 2020
This is not needed anymore since OCA#45
alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this pull request Apr 15, 2020
This is not needed anymore since OCA#45
@simahawk
Copy link
Author

v11 #46

alexey-pelykh pushed a commit to brainbeanapps/server-env that referenced this pull request Apr 16, 2020
This is not needed anymore since OCA#45
@alexey-pelykh
Copy link

v12 #47

simahawk added a commit that referenced this pull request Jul 3, 2020
The PR #45 has been merged manually and a new version was not bumped.
mourad-ehm pushed a commit to akretion/server-env that referenced this pull request Oct 12, 2020
The PR OCA#45 has been merged manually and a new version was not bumped.
sbejaoui pushed a commit to acsone/server-env that referenced this pull request Oct 14, 2020
The PR OCA#45 has been merged manually and a new version was not bumped.
JuMiSanAr pushed a commit to camptocamp/server-env that referenced this pull request Oct 18, 2021
The PR OCA#45 has been merged manually and a new version was not bumped.
JuMiSanAr pushed a commit to camptocamp/server-env that referenced this pull request Oct 22, 2021
The PR OCA#45 has been merged manually and a new version was not bumped.
simahawk added a commit to camptocamp/server-env that referenced this pull request Oct 22, 2021
The PR OCA#45 has been merged manually and a new version was not bumped.
FrancoMaxime pushed a commit to acsone/server-env that referenced this pull request Sep 1, 2022
The PR OCA#45 has been merged manually and a new version was not bumped.
FrancoMaxime pushed a commit to acsone/server-env that referenced this pull request Oct 4, 2022
The PR OCA#45 has been merged manually and a new version was not bumped.
moitabenfdz pushed a commit to DynAppsNV/server-env that referenced this pull request Nov 13, 2023
The PR OCA#45 has been merged manually and a new version was not bumped.
thienvh332 pushed a commit to thienvh332/server-env that referenced this pull request Sep 20, 2024
The PR OCA#45 has been merged manually and a new version was not bumped.
thienvh332 pushed a commit to thienvh332/server-env that referenced this pull request Sep 24, 2024
The PR OCA#45 has been merged manually and a new version was not bumped.
sbidoul pushed a commit that referenced this pull request Sep 30, 2024
The PR #45 has been merged manually and a new version was not bumped.
chaule97 pushed a commit to chaule97/server-env that referenced this pull request Oct 1, 2024
The PR OCA#45 has been merged manually and a new version was not bumped.
chaule97 pushed a commit to chaule97/server-env that referenced this pull request Oct 1, 2024
The PR OCA#45 has been merged manually and a new version was not bumped.
chaule97 pushed a commit to chaule97/server-env that referenced this pull request Oct 1, 2024
The PR OCA#45 has been merged manually and a new version was not bumped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants