Continuous Integration

by
Odoo
v 10.0 Third Party 93
Download for v 10.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Technical Name smile_ci
LicenseAGPL-3
Websitehttp://www.smile.fr
You bought this module and need support? Click here!

Continuous Integration

License: AGPL-3 Smile-SA/odoo_addons

Track continuous integration of a project by using different Smile's modules:
  • smile_docker: https://github.com/Smile-SA/odoo_addons/tree/10.0/smile_docker
  • smile_scm: https://github.com/Smile-SA/odoo_addons/tree/10.0/smile_scm
  • smile_test: https://github.com/Smile-SA/odoo_addons/tree/10.0/smile_ci/addons/smile_test

Features

  • Update branch
    • For SVN repositories, configure the anonymous login/password
    • For Git repositories, add read access to the server via SSH key
  • Check if changes

  • Create build

  • Test build (set max_testing to limit concurrent testing builds)
    • Create Docker containers (Odoo server, database engine and other linked services)
    • Run daemonized Docker containers which starts server in test mode
    • Check code quality with flake8
    • Count lines of code with cloc
    • Create new database with demo or Restore dump in XML/RPC
    • Install modules in XML/RPC
    • Let Docker containers run until new builds kill it (set max_running to limit concurrent running builds)
  • Attach log / config / tests result / code coverage files to build

  • Parse build logs and store results in database

Table of contents

Usage

  1. Go to Integration > Configuration > Repositories to create a new repository and add branches:

    Create Repository
  2. Go to Integration > Configuration > Branches to clone and configure the branches:

    Branch configuration
    Advanced branch configuration
  3. Test or force the test branch to create a new build:

    Create a build
    Created a builds
  4. You can open a build, show tests result, quality errors and the code coverage of a build via this view:

    Show build information
  5. Log, config, tests result, code coverage files of a build are attached in this view:

    Attachments
  6. To display all builds, go to Integration > Dashboard:

    Dashboard

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.

Do not contact contributors directly about support or help with technical issues.

GDPR / EU Privacy

This addons does not collect any data and does not set any browser cookies.

Credits

Author

  • Smile SA

Contributors

  • Corentin POUHET-BRUNERIE
  • Isabelle RICHARD

Maintainer

This module is maintained by Smile SA.

Since 1991 Smile has been a pioneer of technology and also the European expert in open source solutions.

Smile SA

This module is part of the odoo-addons project on GitHub.

You are welcome to contribute.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Error
by
David Montero Crespo
on 7/9/20, 11:19 PM

Hello, I am trying to use the smile modules for Docker but they are not working for me, I am getting this error. Is there an installation guide? File "/odoo/custom/addons/smile_data_integration/models/models.py", line 113, in call_kw_model return native_call_kw_model(method, self, args, kwargs) File "/odoo/odoo-server/odoo/api.py", line 672, in call_kw_model result = method(recs, *args, **kwargs) File "/odoo/custom/addons/smile_docker/models/docker_registry.py", line 103, in create registry.start_container() File "/odoo/custom/addons/smile_docker/models/docker_container.py", line 81, in start_container if not container.is_alive(all=True): File "/odoo/custom/addons/smile_docker/models/docker_container.py", line 39, in is_alive all=all, filters={'name': self.docker_container})) File "/odoo/custom/addons/smile_docker/models/docker_host.py", line 170, in get_containers containers.extend(docker_host.client.containers(**kwargs)) File "/home/odoo10/.local/lib/python2.7/site-packages/docker/api/container.py", line 211, in containers res = self._result(self._get(u, params=params), True) File "/home/odoo10/.local/lib/python2.7/site-packages/docker/utils/decorators.py", line 46, in inner return f(self, *args, **kwargs) File "/home/odoo10/.local/lib/python2.7/site-packages/docker/api/client.py", line 230, in _get return self.get(url, **self._set_request_timeout(kwargs)) File "/home/odoo10/.local/lib/python2.7/site-packages/requests/sessions.py", line 537, in get return self.request('GET', url, **kwargs) File "/home/odoo10/.local/lib/python2.7/site-packages/requests/sessions.py", line 524, in request resp = self.send(prep, **send_kwargs) File "/home/odoo10/.local/lib/python2.7/site-packages/requests/sessions.py", line 637, in send r = adapter.send(request, **kwargs) File "/home/odoo10/.local/lib/python2.7/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) ConnectionError: ('Connection aborted.', error(13, 'Permission denied'))


There are no comments yet!