Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
- Support for timeout in connections
- Changed license to `MPL 2.0 <http://mozilla.org/MPL/2.0/>`__
  • Loading branch information
katyukha committed Jan 28, 2019
2 parents b66e7c3 + 772ab8f commit 5a29eb5
Show file tree
Hide file tree
Showing 46 changed files with 1,038 additions and 250 deletions.
115 changes: 115 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
stages:
- lint
- tests
- coverage
- pages

flake8:
image: python:3.6
stage: lint
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
cache:
key: "$CI_JOB_NAME"
paths:
- .cache
before_script:
- pip install flake8
script:
- flake8 --count --statistics odoo_rpc_client

.tests-default: &test-default-definition
services:
- name: registry.gitlab.com/katyukha/odoo-ci:7.0
alias: odoo7
- name: registry.gitlab.com/katyukha/odoo-ci:8.0
alias: odoo8
- name: registry.gitlab.com/katyukha/odoo-ci:9.0
alias: odoo9
- name: registry.gitlab.com/katyukha/odoo-ci:10.0
alias: odoo10
- name: registry.gitlab.com/katyukha/odoo-ci:11.0
alias: odoo11
- name: registry.gitlab.com/katyukha/odoo-ci:12.0
alias: odoo12
variables:
ODOO_TEST_SUPER_PASSWORD: admin

PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
cache:
key: "$CI_JOB_NAME"
paths:
- .cache
stage: tests
before_script:
- pip install -r requirements.txt -r requirements-test.txt
script:
- ODOO_TEST_HOST=odoo7 ODOO_TEST_PROTOCOL="xml-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo8 ODOO_TEST_PROTOCOL="xml-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo8 ODOO_TEST_PROTOCOL="json-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo9 ODOO_TEST_PROTOCOL="xml-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo9 ODOO_TEST_PROTOCOL="json-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo10 ODOO_TEST_PROTOCOL="xml-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo10 ODOO_TEST_PROTOCOL="json-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo11 ODOO_TEST_PROTOCOL="xml-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo11 ODOO_TEST_PROTOCOL="json-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo12 ODOO_TEST_PROTOCOL="xml-rpc" coverage run -p setup.py test
- ODOO_TEST_HOST=odoo12 ODOO_TEST_PROTOCOL="json-rpc" coverage run -p setup.py test
- coverage combine
- coverage report --fail-under=90
after_script:
- mv .coverage .coverage_${CI_JOB_NAME}
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\%)/'
artifacts:
name: "coverage_${CI_JOB_NAME}"
expire_in: 1 day
paths:
- .coverage_${CI_JOB_NAME}

tests-py27:
image: python:2.7
<<: *test-default-definition

tests-py33:
image: python:3.3
<<: *test-default-definition

tests-py34:
image: python:3.4
<<: *test-default-definition

tests-py35:
image: python:3.5
<<: *test-default-definition

tests-py36:
image: python:3.6
<<: *test-default-definition

tests-py37:
image: python:3.7
<<: *test-default-definition

coverage:
image: python:3.7
stage: coverage
dependencies:
- tests-py27
- tests-py33
- tests-py34
- tests-py35
- tests-py36
- tests-py37
before_script:
- pip install coverage
script:
- coverage combine .coverage_tests-py27 .coverage_tests-py33 .coverage_tests-py34 .coverage_tests-py35 .coverage_tests-py36 .coverage_tests-py37
- coverage report --fail-under=95
after_script:
- coverage html
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\%)/'
artifacts:
name: "$CI_JOB_NAME"
expire_in: 14 day
paths:
- htmlcov
83 changes: 0 additions & 83 deletions .travis.yml

This file was deleted.

14 changes: 10 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Last changes
============

Release 1.0.0
-------------

- Support for timeout in connections
- Changed license to `MPL 2.0 <http://mozilla.org/MPL/2.0/>`__


Release 0.9.0
-------------
Expand Down Expand Up @@ -64,7 +70,7 @@ Release 0.7.0
- Drop support of OpenERP 6.0
- ``ext.repr``: Added ability to pass table format to .as_table method
tablefmt arg must be suitable for tabulate.tabulate method from
[Tabulate](https://pypi.python.org/pypi/tabulate) package
`Tabulate <https://pypi.python.org/pypi/tabulate>`__ package
- Added ``openerp_proxy.experimental`` subpackage.
- Refactored session logic. Logic related to database / client connection
management moved to separate class ``openerp_proxy.session.ClientManager``
Expand Down Expand Up @@ -196,11 +202,11 @@ Release 0.6.2
-------------

- **experimental** Added integration with
`AnyField <https://pypi.python.org/pypi/anyfield>`_
`AnyField <https://pypi.python.org/pypi/anyfield>`__
- Added ``RecordList.mapped`` method,
similar to Odoo's ``RecordSet.mapped`` method.
- Partial fix related to changes in Odoo versioning.
See `Issue #9799 <https://github.com/odoo/odoo/issues/9799>`_
See `Issue #9799 <https://github.com/odoo/odoo/issues/9799>`__
- To ``module_utils`` plugin added ``update_module_list`` method.
- A bit of renaming (usualy used internaly)
(may affect custom plugins and extensions)
Expand All @@ -209,7 +215,7 @@ Release 0.6.2
- Added ``tabulate`` integration. Now when app is running under IPython
shell, it is posible to print ``RecordList``, and single ``Record``
as normal readable tables.
Thanks to `Tabulate <https://pypi.python.org/pypi/tabulate>`_ project
Thanks to `Tabulate <https://pypi.python.org/pypi/tabulate>`__ project
- Added ability to extend Record of specific models.
This allows records of diferent models (objects) to behave specificaly
This may be used for example to add virtual fields in client sripts
Expand Down

0 comments on commit 5a29eb5

Please sign in to comment.