Commit Graph

20 Commits

Author SHA1 Message Date
Rémy Taymans
e8da97fca7 [IMP] release documentation 2025-05-04 16:05:56 +02:00
Rémy Taymans
1417df2315 [DOC] explain newsfragments usage in dev doc 2024-10-08 14:44:04 +02:00
Rémy Taymans
72a5dcf434 New CI to auto build and publish
Using a commit message to trigger the build does not work when merging a
PR because last commit is the merge commit and not the commit edited
with the right name.

Given that, the jobs that will run, are defined at the creation of the
pipeline, publishing and creating a release cannot be done based on the
sate of the code.

A way to trigger publication and release is the git tags.

So with theses changes:

- linting is done only on a merge request
- testing and building are performed on a merge request and on the main
  branch

When a tag is pushed:

- check are done to ensure that the tag is the same as the version of
  the program, in order to not publish and release someting that is not
  coherent.
- the program is published on pypi.
- a release is created, but only if the tag is for a major, minor or
  patch version. No release created for an alpha, beta or pre-release
  version.

So all versions of the program are published on PyPI, but only the
important ones are published via the release mechanism. Because the
release mechanism will warn user for a new version. Version that are not
major, minor or patch are not intended to be used by end users.

The idea of auto publishing and releasing every time a commit is pushed
on the main branch does not work with semantic versioning. For doing
that maybe a calversioning will be better.

The idea of using the CI to push a tag for a new release lead to
security risk. Because the CI will contains credential for writing to
the repository, any contributor can read this token by editing the
gitlab-ci file and use token for bad purposes. Gitlab does not provide
token for writing to a repository owned by the project.

So for now, we control the publication and release of a new version with
two actions:

- updating the version on the pyproject.toml file.
- creating a tag with the same version as in the pyproject.toml file.
2024-02-21 11:50:27 +01:00
Rémy Taymans
ada619279d fix typo. 2023-01-03 10:41:42 +01:00
Sylvain LE GAL
eeb8c1dab2 [DOC] upgrade documentation, to explain Dockerfile creation (and current issues)
[ADD] 11.0 docker file : Add Dockerfile, based on https://raw.githubusercontent.com/odoo/odoo/11.0/setup/package.dfsrc
[FIX] 12.0 docker file : use correct Dockerfile, based on https://raw.githubusercontent.com/odoo/odoo/12.0/setup/package.dfsrc
[FIX] 13.0 docker file : use correct Dockerfile, based on https://raw.githubusercontent.com/odoo/odoo/13.0/setup/package.dfsrc
[FIX] 14.0 docker file : use correct Dockerfile, based on https://raw.githubusercontent.com/odoo/odoo/14.0/setup/package.dfsrc
[FIX] 15.0 docker file : use correct Dockerfile, based on https://raw.githubusercontent.com/odoo/odoo/15.0/setup/package.dfsrc
[FIX] 16.0 docker file : use correct Dockerfile, based on https://raw.githubusercontent.com/odoo/odoo/16.0/setup/package.dfsrc
2023-01-03 10:41:42 +01:00
Sylvain LE GAL
1ddc86385b [DOC] update documentation, regarding 16.0 branch 2022-11-10 20:26:11 +01:00
Sylvain LE GAL
bdc9b606ec [IMP] Add postgresql custom configuration ; [ADD] extra setting into odoo_default_company key. (in config.yml file) ; [ADD] odoo_rpc_timeout extra settings ; [FIX] restore call to custom odoo.cfg file 2022-10-11 12:26:41 +02:00
Sylvain LE GAL
36db85e4b9 [ADD] Log if container fails during odoo execution 2022-06-29 17:17:17 +02:00
Sylvain LE GAL
b5230fe947 [META] publish version 0.1.0 2022-06-25 00:15:05 +02:00
Sylvain LE GAL
3554f92564 [DOC] update documentation 2022-05-31 17:31:40 +02:00
Sylvain LE GAL
c4ef08cf64 add doc 2022-05-30 15:00:46 +02:00
Sylvain LE GAL
9e58cf4cf9 wip 2022-05-30 14:19:26 +02:00
Sylvain LE GAL
a0eb99fd48 coucou 2022-05-06 14:32:49 +02:00
Sylvain LE GAL
a3236c346d [GREEN CI] 2022-05-04 20:17:18 +02:00
Sylvain LE GAL
44d5158582 [FIX] dependencies 2022-05-04 13:44:49 +02:00
Sylvain LE GAL
dce91df36d [WIP] 2022-04-27 15:18:18 +02:00
Sylvain LE GAL
9c376bbb34 [FIX] CI 2022-04-10 20:50:58 +02:00
Sylvain LE GAL
47b48ae86c [IMP] doc 2022-04-10 10:05:40 +02:00
Sylvain LE GAL
44b7ce76b0 [IMP] documentation 2022-04-08 22:10:11 +02:00
LE GAL SYLVAIN
760d145600 [REF] add ensure_folder_exists system
[ADD] pyttest.ini file + test for cli_build
[ADD] call to gitaggregate
[REF] harmonize release & version words ; remove python version ; add...
[REM] remove towncrier for the time being
[REF\] enable both test and improve : each test should have it's own output folder to reduce gitaggagregate duration
2022-04-08 19:09:24 +00:00