Skip to content

Commit

Permalink
TA#66731 [ADD][16.0] Initiate branch
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda committed Jun 25, 2024
1 parent f64994c commit 2f34f3d
Show file tree
Hide file tree
Showing 39 changed files with 40 additions and 597 deletions.
58 changes: 27 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,30 @@ jobs:
name: Setup Log Folder For Reports
command: sudo mkdir -p .log && sudo chmod 777 .log

- run:
name: Run Test
command: docker-compose run --rm odoo run_pytest.sh

- run:
name: Codacy Coverage
command: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l python -r .log/coverage.xml
# - run:
# name: Run Test
# command: docker-compose run --rm odoo run_pytest.sh

- store_test_results:
path: .log
# - store_test_results:
# path: .log

# job that find the next tag for the current branch/repo and push the tag to github.
# it will trigger the publish of a new docker image.
auto-tag:
machine: true
steps:
- checkout
- run:
<<: *quay_io_login
- run:
name: Get nws
command: |
curl -L $NWS_BIN_LOCATION > ./nws
chmod +x ./nws
- run:
name: Set tag
command: |
./nws circleci create-tag -t odoo-base
# auto-tag:
# machine: true
# steps:
# - checkout
# - run:
# <<: *quay_io_login
# - run:
# name: Get nws
# command: |
# curl -L $NWS_BIN_LOCATION > ./nws
# chmod +x ./nws
# - run:
# name: Set tag
# command: |
# ./nws circleci create-tag -t odoo-base

workflows:
version: 2
Expand All @@ -57,10 +53,10 @@ workflows:
- tests:
context: quay.io

- auto-tag:
context: nws
requires:
- tests
filters:
branches:
only: /^1\d\.0/
# - auto-tag:
# context: nws
# requires:
# - tests
# filters:
# branches:
# only: /^1\d\.0/
2 changes: 1 addition & 1 deletion .docker_files/main/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# © 2023 Numigi
# © 2024 Numigi
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
5 changes: 2 additions & 3 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# © 2023 Numigi
# © 2024 Numigi
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
Expand All @@ -11,8 +11,7 @@
'category': 'Other',
'summary': 'Install all addons required for testing.',
'depends': [
'maintenance_equipment_model',
'maintenance_sale_service',
'maintenance',
],
'installable': True,
}
2 changes: 1 addition & 1 deletion .docker_files/odoo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test_report_directory = False
translate_modules = ['all']
unaccent = False
without_demo = False
workers = 2
workers = 0
xmlrpc = True
xmlrpc_interface =
xmlrpc_port = 8069
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: pre-commit
on:
pull_request:
branches:
- "14.0*"
- "16.0"
push:
branches:
- "14.0"
- "16.0"

jobs:
pre-commit:
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/.idea/
venv
extra-addons
log
/.idea
__pycache__/
Expand All @@ -9,6 +8,5 @@ __pycache__/
Pipfile
docker-compose.override.yml
.DS_STORE
.third-party-addons
.pytest_cache
.vscode/
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/numigi/odoo-public:14.latest
FROM quay.io/numigi/odoo-public:16.latest
LABEL maintainer="[email protected]"

USER root
Expand All @@ -10,8 +10,5 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS

USER odoo

COPY maintenance_equipment_model /mnt/extra-addons/maintenance_equipment_model
COPY maintenance_sale_service /mnt/extra-addons/maintenance_sale_service

COPY .docker_files/main /mnt/extra-addons/main
COPY .docker_files/odoo.conf /etc/odoo
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
context: .
dockerfile: Dockerfile
volumes:
- odoo-web-data:/var/lib/odoo
- odoo16-web-data:/var/lib/odoo
- ./.log:/var/log/odoo
ports:
- "8069:8069"
Expand All @@ -16,16 +16,16 @@ services:
environment:
- LOG_ODOO=/var/log/odoo
db:
image: postgres:9.6
image: postgres:16.0
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
- odoo16-db-data:/var/lib/postgresql/data/pgdata
expose:
- 5432

volumes:
odoo-web-data:
odoo-db-data:
odoo16-web-data:
odoo16-db-data:
2 changes: 1 addition & 1 deletion gitoo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- url: https://github.com/OCA/maintenance
branch: "14.0"
branch: "16.0"
includes:
- base_maintenance_group
20 changes: 0 additions & 20 deletions maintenance_equipment_model/README.rst

This file was deleted.

4 changes: 0 additions & 4 deletions maintenance_equipment_model/__init__.py

This file was deleted.

22 changes: 0 additions & 22 deletions maintenance_equipment_model/__manifest__.py

This file was deleted.

100 changes: 0 additions & 100 deletions maintenance_equipment_model/i18n/fr.po

This file was deleted.

5 changes: 0 additions & 5 deletions maintenance_equipment_model/models/__init__.py

This file was deleted.

37 changes: 0 additions & 37 deletions maintenance_equipment_model/models/maintenance_equipment.py

This file was deleted.

13 changes: 0 additions & 13 deletions maintenance_equipment_model/models/maintenance_equipment_model.py

This file was deleted.

3 changes: 0 additions & 3 deletions maintenance_equipment_model/security/ir.model.access.csv

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 0 additions & 4 deletions maintenance_equipment_model/tests/__init__.py

This file was deleted.

Loading

0 comments on commit 2f34f3d

Please sign in to comment.