Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
www.cybrosys.com
How to check quality of
addons
INTRODUCTION
 One of the powerful features of Odoo is the third party add-ons available in Odoo app store.
These Add-ons ...
 To develop Add-ons that meet the quality measures, following basic guideline can be followed.
1. Avoid Messy Code and fo...
 Now let us check, how to use Travis CI and perform the quality checks.
 Steps1: Link Travis CI and Github
1. Go to Trav...
 Step 2: Build Configuration
o Next, create a file called “.travis.yml” in the root of your project repository:
● The ‘la...
 Alternatively, we can specify multiple versions of Python and Travis CI, that will test each
project version
• For advan...
 Step 3: Trigger builds
 To trigger builds, push the commit that adds “.travis.yml” to the project. The quality test wil...
Refer this link for more:
https://www.cybrosys.com/blog/how-to-check-quality-of-odoo-addons
Thank You !
Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park,
Kakkancherry,
Calicut University P.O.
Calicut
Ke...
Upcoming SlideShare
Loading in …5
×

How to check quality of addons

104 views

Published on

One of the powerful features of Odoo is the third party add-ons available in Odoo app store. These Add-ons provides many enterprise edition features and lot of other customized features to Odoo users. But ensuring the quality of each Add-on is necessary to secure the Odoo from external threats like data breach or system failures. Quality tools help us to ensure the quality of the add-ons. Odoo Community Association (OCA) has a Maintainer Quality Tools (MQT) project that helps the user to ensure the quality of Odoo Add-ons.
This Project uses Coveralls code coverage reporting service and Travis CI continuous integration service. The services are free for open source projects and paid for proprietary projects. We need a GitHub repository to use this service, an easily integrate the OCA maintainer-quality-tools with the repository

Published in: Business
  • Be the first to comment

  • Be the first to like this

How to check quality of addons

  1. 1. www.cybrosys.com How to check quality of addons
  2. 2. INTRODUCTION  One of the powerful features of Odoo is the third party add-ons available in Odoo app store. These Add-ons provides many enterprise edition features and lot of other customized features to Odoo users. But ensuring the quality of each Add-on is necessary to secure the oddo from external threats like data breach or system failures. Quality tools help us to ensure the quality of the addons. Odoo Community Association (OCA) has a Maintainer Quality Tools (MQT) project that helps the user to ensure the quality of Odoo Add-ons.  This Project uses Coveralls code coverage reporting service and Travis CI continuous integration service. The services are free for open source projects and paid for proprietary projects. We need a Github repository to use this service, an easily integrate the OCA maintainer-quality-tools with the repository
  3. 3.  To develop Add-ons that meet the quality measures, following basic guideline can be followed. 1. Avoid Messy Code and focus on clean code so that it will helpful for future bug fixing or adding new functionality 2. Always ensure a good coding standard or style guides.
  4. 4.  Now let us check, how to use Travis CI and perform the quality checks.  Steps1: Link Travis CI and Github 1. Go to Travis official page https://travis-ci.org/ and then sign using Github account. Then click on sync repository button to sync repositories with Travis
  5. 5.  Step 2: Build Configuration o Next, create a file called “.travis.yml” in the root of your project repository: ● The ‘language’ section is used for specifying the language of the software. ● The ‘python’ section is used for specifying the version or versions of Python to use for testing. ● The ‘install’ section is used for specifying commands to run before testing, such as the installation of dependencies or the compilation of required packages. ● The ‘script’ section is used for specifying the command to test the software. Typically, this command will find all tests in the project and run them. The specified command must exit status code ‘0’ if the test is successful; otherwise, the test will be considered a failure.
  6. 6.  Alternatively, we can specify multiple versions of Python and Travis CI, that will test each project version • For advanced build configuration, see the Travis CI documentation on configuring your build
  7. 7.  Step 3: Trigger builds  To trigger builds, push the commit that adds “.travis.yml” to the project. The quality test will start automatically on Travis.
  8. 8. Refer this link for more: https://www.cybrosys.com/blog/how-to-check-quality-of-odoo-addons
  9. 9. Thank You ! Cybrosys Technologies Pvt. Ltd. Neospace, Kinfra Techno Park, Kakkancherry, Calicut University P.O. Calicut Kerala, India - 673635. Cybrosys Ltd 15, ST Antonys Road, Forest Gate, London England, E79QA. Cybrosys Technologies Pvt. Ltd. 1st Floor, Thapasya Building, Infopark, Kakkanad, Kochi, Kerala, India-682030.

×