From 30c7a29c8101d058d9ebdca666e8e2f7fa3c3dd4 Mon Sep 17 00:00:00 2001 From: Dave Lasley Date: Tue, 13 Dec 2016 10:49:21 -0800 Subject: [PATCH] [FIX] travis: Update travis file to new standard * Add new matrix * Add transifex support * Switch coveralls to travis_after_tests_success * Move pip requirements to requirements.txt --- .travis.yml | 35 +++++++++++++++++++++-------------- requirements.txt | 3 +++ 2 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 requirements.txt diff --git a/.travis.yml b/.travis.yml index 676726f6..3e3382a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,13 @@ language: python +sudo: false +cache: + apt: true + directories: + - $HOME/.cache/pip python: - "2.7" -sudo: false -cache: pip - addons: apt: sources: @@ -15,28 +17,33 @@ addons: - python-lxml # because pip installation is slow - wkhtmltopdf +before_install: + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + env: - - VERSION="10.0" LINT_CHECK="1" - - VERSION="10.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" - - VERSION="10.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0" - - VERSION="10.0" UNIT_TEST="1" LINT_CHECK="0" + global: + - VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" + - TRANSIFEX_USER='transbot@odoo-community.org' + - secure: jX9I8iBSTGMGYNzj5zJkh/bvmXmemjqlKpVezZ2QMqaoXHgPPUlktxBwTMlmNeuJ5L9DlDiCqOiXpF41LDmKmjX/e99G15cvNSfQc/jG+exIfo9KSbc6aQSu8cqP+yu1MGTsuuq67Wm8N45+fFJGGsySUbGWFPXnF4MVIiZpqx0= + + matrix: + - LINT_CHECK="1" + - TRANSIFEX="1" + - TESTS="1" ODOO_REPO="odoo/odoo" + - TESTS="1" ODOO_REPO="OCA/OCB" virtualenv: system_site_packages: true -before_install: - - "export DISPLAY=:910.0" - - "sh -e /etc/init.d/xvfb start" - install: - - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools + - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} - travis_install_nightly - printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc - - pip install unidecode pyserial pycountry script: - travis_run_tests after_success: - coveralls + - travis_after_tests_success diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..de510661 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +unidecode +pyserial +pycountry