Merge branch '15.0-ci_config' into '15.0'

add CI config

See merge request Noviat/Noviat_Generic/accounting-ebics!2
This commit is contained in:
Jeremy Didderen 2023-08-13 16:22:14 +00:00
commit fb1f214d88
15 changed files with 73 additions and 45 deletions

View File

@ -1,17 +1,14 @@
# Do NOT update manually; changes here will be overwritten by Copier # Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.5.2 _commit: v1.2
_src_path: gh:oca/oca-addons-repo-template _src_path: https://picasso.noviat.com/ci/addons-repo-template.git
ci: GitHub ci_exclude_modules: account_asset
dependency_installation_mode: PIP ci_image: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest
generate_requirements_txt: true customer_slug: Noviat_Generic
include_wkhtmltopdf: false odoo_enterprise: 1
odoo_version: 15.0 odoo_version: 15.0
org_name: Odoo Community Association (OCA) org_name: Noviat
org_slug: OCA org_slug: Noviat
rebel_module_groups: [] repo_name: Modules dedicated to manage the EBICS protocol
repo_description: 'TODO: add repo description.' repo_slug: accounting-ebics
repo_name: account_ebics repo_website: https://www.noviat.com/
repo_slug: account_ebics
repo_website: https://www.noviat.com
travis_apt_packages: []
travis_apt_sources: []

4
.gitignore vendored
View File

@ -15,7 +15,6 @@ build/
develop-eggs/ develop-eggs/
dist/ dist/
eggs/ eggs/
lib/
lib64/ lib64/
parts/ parts/
sdist/ sdist/
@ -70,6 +69,3 @@ docs/_build/
# Backup files # Backup files
*~ *~
*.swp *.swp
# OCA rules
!static/lib/

13
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,13 @@
include:
- project: "ci/gitlabci-odoo"
ref: main
file: "/odoo-tests.template.yml"
variables:
ODOO_CI_IMAGE: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest
VERSION: "15.0"
ODOO_BRANCH: "15.0"
ENTERPRISE: "1"
ODOO_PRECOMMIT: "1"
ODOO_TEST: "1"
EXCLUDE_MODULES: "account_asset"

View File

@ -14,9 +14,11 @@ exclude: |
^docs/_templates/.*\.html$| ^docs/_templates/.*\.html$|
# You don't usually want a bot to modify your legal texts # You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*) (LICENSE.*|COPYING.*)
# Exclude the TODO folders
/TODO/
default_language_version: default_language_version:
python: python3 python: python3
node: "14.18.0" node: "16.10.0"
repos: repos:
- repo: local - repo: local
hooks: hooks:
@ -27,13 +29,18 @@ repos:
entry: found forbidden files; remove them entry: found forbidden files; remove them
language: fail language: fail
files: "\\.rej$" files: "\\.rej$"
- id: en-po-files
name: en.po files cannot exist
entry: found a en.po file
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools - repo: https://github.com/oca/maintainer-tools
rev: dfba427ba03900b69e0a7f2c65890dc48921d36a rev: dfba427ba03900b69e0a7f2c65890dc48921d36a
hooks: hooks:
# update the NOT INSTALLABLE ADDONS section above # update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons - id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website - id: oca-fix-manifest-website
args: ["https://www.noviat.com"] args: ["https://www.noviat.com/"]
- repo: https://github.com/myint/autoflake - repo: https://github.com/myint/autoflake
rev: v1.4 rev: v1.4
hooks: hooks:
@ -96,7 +103,7 @@ repos:
- id: pyupgrade - id: pyupgrade
args: ["--keep-percent-format"] args: ["--keep-percent-format"]
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.9.3 rev: 5.12.0
hooks: hooks:
- id: isort - id: isort
name: isort except __init__.py name: isort except __init__.py
@ -104,7 +111,7 @@ repos:
- --settings=. - --settings=.
exclude: /__init__\.py$ exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo - repo: https://github.com/acsone/setuptools-odoo
rev: 3.0.3 rev: 3.1.8
hooks: hooks:
- id: setuptools-odoo-make-default - id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements - id: setuptools-odoo-get-requirements
@ -119,19 +126,15 @@ repos:
- id: flake8 - id: flake8
name: flake8 name: flake8
additional_dependencies: ["flake8-bugbear==21.9.2"] additional_dependencies: ["flake8-bugbear==21.9.2"]
- repo: https://github.com/PyCQA/pylint - repo: https://github.com/OCA/pylint-odoo
rev: v2.11.1 rev: 7.0.2
hooks: hooks:
- id: pylint - id: pylint_odoo
name: pylint with optional checks name: pylint with optional checks
args: args:
- --rcfile=.pylintrc - --rcfile=.pylintrc
- --exit-zero - --exit-zero
verbose: true verbose: true
additional_dependencies: &pylint_deps - id: pylint_odoo
- pylint-odoo==5.0.5
- id: pylint
name: pylint with mandatory checks
args: args:
- --rcfile=.pylintrc-mandatory - --rcfile=.pylintrc-mandatory
additional_dependencies: *pylint_deps

View File

@ -1,9 +1,11 @@
[MASTER] [MASTER]
ignore-patterns=["^.*/TODO/.*$"]
load-plugins=pylint_odoo load-plugins=pylint_odoo
score=n score=n
[ODOOLINT] [ODOOLINT]
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" # readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest_required_authors=Noviat manifest_required_authors=Noviat
manifest_required_keys=license manifest_required_keys=license
manifest_deprecated_keys=description,active manifest_deprecated_keys=description,active
@ -79,7 +81,7 @@ enable=anomalous-backslash-in-string,
invalid-commit, invalid-commit,
manifest-maintainers-list, manifest-maintainers-list,
missing-newline-extrafiles, missing-newline-extrafiles,
missing-readme, # missing-readme,
missing-return, missing-return,
odoo-addons-relative-import, odoo-addons-relative-import,
old-api7-method-defined, old-api7-method-defined,

View File

@ -1,9 +1,10 @@
[MASTER] [MASTER]
ignore-patterns=["^.*/TODO/.*$"]
load-plugins=pylint_odoo load-plugins=pylint_odoo
score=n score=n
[ODOOLINT] [ODOOLINT]
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" # readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest_required_authors=Noviat manifest_required_authors=Noviat
manifest_required_keys=license manifest_required_keys=license
manifest_deprecated_keys=description,active manifest_deprecated_keys=description,active
@ -72,7 +73,7 @@ enable=anomalous-backslash-in-string,
invalid-commit, invalid-commit,
manifest-maintainers-list, manifest-maintainers-list,
missing-newline-extrafiles, missing-newline-extrafiles,
missing-readme, # missing-readme,
missing-return, missing-return,
odoo-addons-relative-import, odoo-addons-relative-import,
old-api7-method-defined, old-api7-method-defined,

View File

@ -1,5 +1,20 @@
![Licence](https://img.shields.io/badge/licence-AGPL--3-blue.svg) [![pipeline status](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/15.0/pipeline.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/15.0)
[![coverage report](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/15.0/coverage.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/15.0)
EBICS support for Odoo <!-- /!\ do not modify above this line -->
======================
# Modules dedicated to manage the EBICS protocol
<!-- /!\ do not modify below this line -->
<!-- prettier-ignore-start -->
[//]: # (addons)
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
[//]: # (end addons)
<!-- prettier-ignore-end -->
----

View File

@ -6,7 +6,7 @@
"version": "15.0.1.1.3", "version": "15.0.1.1.3",
"license": "LGPL-3", "license": "LGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"depends": ["account"], "depends": ["account"],
"data": [ "data": [

View File

@ -6,7 +6,7 @@
"version": "15.0.1.0.0", "version": "15.0.1.0.0",
"license": "AGPL-3", "license": "AGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"summary": "EBICS Files automated import and processing", "summary": "EBICS Files automated import and processing",
"depends": ["account_ebics"], "depends": ["account_ebics"],

View File

@ -6,7 +6,7 @@
"version": "15.0.1.0.0", "version": "15.0.1.0.0",
"license": "LGPL-3", "license": "LGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"depends": ["account_ebics", "account_batch_payment"], "depends": ["account_ebics", "account_batch_payment"],
"data": ["views/account_batch_payment_views.xml"], "data": ["views/account_batch_payment_views.xml"],

View File

@ -6,7 +6,7 @@
"summary": "Use OCA Bank Statement Import with account_ebics", "summary": "Use OCA Bank Statement Import with account_ebics",
"version": "15.0.1.0.1", "version": "15.0.1.0.1",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Hidden", "category": "Hidden",
"license": "LGPL-3", "license": "LGPL-3",
"depends": [ "depends": [

View File

@ -6,7 +6,7 @@
"summary": "Deploy account_ebics module on Odoo Enterprise", "summary": "Deploy account_ebics module on Odoo Enterprise",
"version": "15.0.1.0.0", "version": "15.0.1.0.0",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Hidden", "category": "Hidden",
"license": "LGPL-3", "license": "LGPL-3",
"depends": [ "depends": [

View File

@ -6,7 +6,7 @@
"summary": "Use Odoo Enterprise Bank Statement Import with account_ebics", "summary": "Use Odoo Enterprise Bank Statement Import with account_ebics",
"version": "15.0.1.0.0", "version": "15.0.1.0.0",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Hidden", "category": "Hidden",
"license": "LGPL-3", "license": "LGPL-3",
"depends": [ "depends": [

View File

@ -6,7 +6,7 @@
"version": "15.0.1.0.0", "version": "15.0.1.0.0",
"license": "LGPL-3", "license": "LGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"depends": ["account_ebics", "account_payment_order"], "depends": ["account_ebics", "account_payment_order"],
"data": [ "data": [

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
cryptography<37