From c1cf75dc65c4472ff6e63f88d78dfd24ba743fc0 Mon Sep 17 00:00:00 2001 From: Laurent Mignon Date: Fri, 1 Aug 2014 10:48:15 +0200 Subject: [PATCH 1/2] [FIX] travis: update travis file to match the one in https://github.com/OCA/maintainer-quality-tools/blob/master/sample_files/.travis.yml --- .travis.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index d1948f88..120056c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,17 +6,20 @@ python: virtualenv: system_site_packages: true -before_install: - - git clone https://github.com/OCA/maintainer-quality-tools.git /tmp/maintainer-quality-tools - - export PATH=/tmp/maintainer-quality-tools/travis:$PATH - - travis_install_nightly 7.0 - - pip install coveralls flake8 - - sudo pip install ofxparse - - git clone https://github.com/OCA/account-financial-tools /tmp/account-financial-tools -b 7.0 +env: + - VERSION="7.0" ODOO_REPO="odoo/odoo" + - VERSION="7.0" ODOO_REPO="OCA/OCB" + +install: + - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools + - git clone https://github.com/OCA/account-financial-tools ${HOME}/account-financial-tools -b 7.0 + - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} + - travis_install_nightly + - pip install ofxparse xlrd script: - - travis_run_flake8 - - travis_run_tests 7.0 /tmp/account-financial-tools + - travis_run_flake8 + - travis_run_tests after_success: coveralls From bf4641184e99b747007664dcc078740fa4c6879f Mon Sep 17 00:00:00 2001 From: Laurent Mignon Date: Fri, 1 Aug 2014 15:37:50 +0200 Subject: [PATCH 2/2] [FIX] travis: exclude account_statement_ext_point_of_sale (addon without tests but depends of point-of_sale) When this addon is installed, odoo install account_statement_ext first and then point_of_sale. Since account_statement_ext define the profile_id as required, it becomes impossible to install the demo data from point_of_sale without integrity error. By excluding this addon from tests, all tests pass! --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 120056c0..f3f41c18 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,8 @@ virtualenv: system_site_packages: true env: - - VERSION="7.0" ODOO_REPO="odoo/odoo" - - VERSION="7.0" ODOO_REPO="OCA/OCB" + - VERSION="7.0" ODOO_REPO="odoo/odoo" EXCLUDE="account_statement_ext_point_of_sale" + - VERSION="7.0" ODOO_REPO="OCA/OCB" EXCLUDE="account_statement_ext_point_of_sale" install: - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools