From cc903e30136b3a07dc3fcd9d305f1808fd5ed166 Mon Sep 17 00:00:00 2001 From: Ajmal Cybro Date: Mon, 23 Aug 2021 15:19:30 +0530 Subject: [PATCH] [ADD] Travis config added --- .travis.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..b49e653df --- /dev/null +++ b/.travis.yml @@ -0,0 +1,39 @@ +language: python + +python: + - "3.6" + +sudo: false +cache: + apt: true + directories: + - $HOME/.cache/pip3 + +addons: + postgresql: "9.6" + apt: + packages: + - expect-dev + - python-lxml + +matrix: + include: + - python: 3.6 + env: + VERSION="13.0" ODOO_REPO="odoo/odoo" TESTS="1" LINT_CHECK="0" + +before_install: + - pip install codecov coverage + - pip install httpagentparser + +install: + - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools + - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} + - LINT_CHECK="1" travis_install_nightly + +script: + - travis_run_tests + - test_pylint + +after_success: + - LINT_CHECK="0" travis_after_tests_success