Git Product home page Git Product logo

maintainer-quality-tools's Introduction

QA Tools for Odoo maintainers

The goal is to provide helpers to ensure the quality of Odoo addons.

Sample travis configuration file

Put this in your project's .travis.yml:

language: python
python:
  - "2.7"

virtualenv:
  system_site_packages: true

install:
 - git clone https://github.com/OCA/maintainer-quality-tools.git $HOME/maintainer-quality-tools
 - export PATH=$HOME/maintainer-quality-tools/travis:$PATH
 - $HOME/maintainer-quality-tools/travis/travis_install_nightly 7.0
 - pip install coveralls flake8

services:
  - postgresql

script:
    - travis_run_flake8
    - travis_run_tests 7.0

after_success:
  coveralls

If your project depends on other OCA/Github repositories simply add the following under before_install section:

install:
  - git clone https://github.com/OCA/a_project_x $HOME/a_project_x -b 7.0
  - git clone https://github.com/OCA/a_project_y $HOME/a_project_y -b 7.0

And add path to the cloned repositories to the travis_run_tests command:

script:
  - travis_run_tests 7.0 openerp_test $HOME/a_project_x $HOME/a_project_y

Sample coveralls configuration file

You can use the following sample (also available in the travis directory) to configure the reporting by coveralls.io. Copy it to .coveragerc in the root of your project, and change the include value to match the name of your project:

[report]
include =
    */OCA/<YOUR_PROJECT_NAME_HERE>/*

omit =
    */tests/*
    *__init__.py

# Regexes for lines to exclude from consideration
exclude_lines =
    # Have to re-enable the standard pragma
    pragma: no cover

    # Don't complain about null context checking
    if context is None:

maintainer-quality-tools's People

Contributors

gurneyalex avatar nbessi avatar guewen avatar

Watchers

James Cloos avatar Sandy avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.