From 686ea0b5a5f4d0c4552489c271bfa1fdd2a819ef Mon Sep 17 00:00:00 2001 From: Ajmal Cybro Date: Wed, 28 Jul 2021 12:23:57 +0530 Subject: [PATCH] [ADD] Travis config file --- .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..73214eeaa --- /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="14.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