Skip to content
Snippets Groups Projects
Commit ce19743863e7 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:arrow_up: odoorpc with fix

parent d08679faf5e3
No related branches found
No related tags found
1 merge request!63Topic/default/update odoorpc
This commit is part of merge request !63. Comments created here will be created in the context of that merge request.
...@@ -8,6 +8,15 @@ ...@@ -8,6 +8,15 @@
variables: variables:
HTML_DOC_SOURCES: doc/_build/html HTML_DOC_SOURCES: doc/_build/html
TEMP_IMAGE_BASENAME: registry.xcg.io/ci/$CI_PROJECT_PATH_SLUG
# do not use $TEMP_IMAGE_BASENAME, it will not be correctly replaced by GitLab
TEMP_IMAGE: registry.xcg.io/ci/$CI_PROJECT_PATH_SLUG:hg-$CI_COMMIT_HG_SHA
build-docker-image:
needs: []
stage: build
script:
- DOCKER_IMAGE=$TEMP_IMAGE_BASENAME docker-build
import_jsonrpc_odoo11_test: import_jsonrpc_odoo11_test:
stage: test stage: test
...@@ -70,8 +79,9 @@ ...@@ -70,8 +79,9 @@
ODOO_TYPE: odoo13 ODOO_TYPE: odoo13
allow_failure: true allow_failure: true
build-docker-image: docker_build_copy_test:
needs: [] needs:
variables: - job: build-docker-image
TAG_LATEST: branch/default stage: test
image: $TEMP_IMAGE
script: script:
...@@ -77,5 +87,5 @@ ...@@ -77,5 +87,5 @@
script: script:
- DOCKER_IMAGE=registry.xcg.io/xcgd/odoo_scripts docker-build - docker_build_copy
- DOCKER_BASE_IMAGE_NAME=registry.xcg.io/xcgd/odoo_scripts DOCKER_IMAGE=xcgd/odoo_scripts docker-tag - docker_build_clean
build-documentation: build-documentation:
...@@ -80,10 +90,12 @@ ...@@ -80,10 +90,12 @@
build-documentation: build-documentation:
stage: build # done in test stage to be able to use the built image
needs: [] stage: test
image: python:3.8-alpine needs:
- job: build-docker-image
image: $TEMP_IMAGE
artifacts: artifacts:
paths: paths:
- doc/_build - doc/_build
expire_in: 10m expire_in: 10m
script: script:
...@@ -85,11 +97,9 @@ ...@@ -85,11 +97,9 @@
artifacts: artifacts:
paths: paths:
- doc/_build - doc/_build
expire_in: 10m expire_in: 10m
script: script:
- apk add make mercurial - apk add make
# It might not be necessary to install this and the dependency (maybe just reuse the built image? but its done after)
- pip3 install .
- cd doc - cd doc
- pip3 install -r requirements hg-evolve - pip3 install -r requirements hg-evolve
- for language in en fr ; do LANGUAGE=$language BUILDDIRSUFFIX=/$CI_COMMIT_HG_BRANCH make html ; done - for language in en fr ; do LANGUAGE=$language BUILDDIRSUFFIX=/$CI_COMMIT_HG_BRANCH make html ; done
...@@ -100,3 +110,19 @@ ...@@ -100,3 +110,19 @@
artifacts: true artifacts: true
only: only:
- /^branch\/.*/ - /^branch\/.*/
publish:
extends: build-docker-image
stage: deploy
needs:
- job: docker_build_copy_test
- job: import_jsonrpc_odoo11_test
- job: import_jsonrpc_odoo13_test
- job: import_base_import_odoo13_test
- job: import_base_import_odoo11_test
variables:
TAG_LATEST: branch/default
script:
- DOCKER_BASE_IMAGE_NAME="$TEMP_IMAGE" DOCKER_IMAGE="registry.xcg.io/xcgd/odoo_scripts" tag-img
- DOCKER_BASE_IMAGE_NAME="$TEMP_IMAGE" DOCKER_IMAGE="xcgd/odoo_scripts" tag-img
FROM python:3.9-alpine FROM python:3-alpine
ARG BUILD_DATE="" ARG BUILD_DATE=""
ARG VCS_URL="" ARG VCS_URL=""
ARG VCS_REF="" ARG VCS_REF=""
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
RUN set -x ;\ RUN set -x ;\
apk add --no-cache --update zsh rsync postgresql-libs && \ apk add --no-cache --update zsh rsync postgresql-libs && \
# mercurial && \ # mercurial && \
apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev && \ apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev git && \
python3 -m pip install -r /usr/src/odoo_scripts/requirements && \
python3 -m pip install /usr/src/odoo_scripts[import_sql,conf2reST,source_control] && \ python3 -m pip install /usr/src/odoo_scripts[import_sql,conf2reST,source_control] && \
apk --purge del .build-deps && \ apk --purge del .build-deps && \
rm -rf /usr/src/odoo_scripts rm -rf /usr/src/odoo_scripts
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
History History
======= =======
13.0.0
------
Update odoorpc required version to one including the fix for python 3.10.
12.0.1 12.0.1
------ ------
......
# This includes the requirements for all extras # This includes the requirements for all extras
odoorpc==0.7.0 git+https://github.com/xcgd/odoorpc@fix-oca-issue-66#egg=odoorpc
requests_toolbelt==0.8.0 requests_toolbelt==0.8.0
python-dateutil>=2.7.0 python-dateutil>=2.7.0
PyYAML PyYAML
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
license="MIT", license="MIT",
packages=find_packages(), packages=find_packages(),
install_requires=[ install_requires=[
"odoorpc==0.7.0", "odoorpc>0.8.0",
"requests_toolbelt==0.8.0", "requests_toolbelt==0.8.0",
"python-dateutil>=2.7.0", "python-dateutil>=2.7.0",
"coloredlogs", "coloredlogs",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment