Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Phasing out Travis
by
Moduon Team, S. L., Jairo Llopis
Thanks for that good job Stéphane.
El lun, 26 de sep de 2022 a las 13:22:15 PM, Stéphane Bidoul <notifications@odoo-community.org> escribió:
Dear contributors,As you may have noticed, we have been working towards moving our CI to GitHub actions over the past two years.The solution has proved to be stable and is active for 15.0 and also for 14.0 in many repos, as well as a few others.The time has now come to move to GitHub actions for more repos, in order to reduce OCA expenses.To this end, PSC's are encouraged to progressively update/apply the repo templates on branches that don't use GitHub actions.yet.The procedure is simple:1. install pipx2. if the repository has a `.copier-answers.yml` file, run `pipx run copier update`3. if not, run `pipx run copier copy git+https://github.com/oca/oca-addons-repo-template .`4. enter the repo slug, name and description, keep the default values for most other questions5. accept and commit the changes as `Update dotfiles`6. run `pre-commit run -a`, review and commit the changes as `Apply dotfiles`7. /ocabot merge when greenA few tips:
- By default the template checks development status and license compatibility of dependencies. There may be issues with older branches. If this proves problematic to solve, you can disable them by answering no to the corresponding questions. For more recent branches (14.0+), these checks are *mandatory*, so please don't disable them.
- The most likely cause of failure is incorrectly declared external dependencies. Before Odoo 13, external_dependencies must use the package name as imported in the code, which can be different from the PyPI project name. In this case, you need to map the import name to the PyPI project name using external_dependencies_override in the corresponding setup.py, as explained in the setuptools-odoo documentation. In Odoo 13 and up, the PyPI project name (and minimum version) must be declared in the manifest external_dependencies.
- The template supports branches 10.0 and up.
In the coming months we are going to progressively reduce the number of concurrent Travis builds, so such builds will be queued longer, giving some incentive to migrate older branches that are still active.Thanks for your attention :) Do not hesitate to @ mention me in PRs where you need help to migrate.Best regards,-sbi_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe