pre-commit, black, isort [ci skip]

This commit is contained in:
OCA-git-bot
2019-10-12 12:29:03 +02:00
parent 7b24b39bc2
commit eb3f08ac93
8 changed files with 559 additions and 14 deletions

View File

@@ -1,31 +1,43 @@
language: python
sudo: false
cache: pip
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
python:
- "3.5"
- "3.6"
addons:
postgresql: "9.6"
postgresql: "9.5" # minimal postgresql version for the base_import_security_group module
# more info: https://github.com/OCA/maintainer-quality-tools/issues/432
apt:
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
- libmysqlclient-dev # To install mysqlclient and import MySQLdb
stages:
- linting
- test
jobs:
include:
- stage: linting
name: "pre-commit"
before_install:
install: pip install pre-commit
script: pre-commit run --all --show-diff-on-failure
after_success:
- stage: test
env:
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
- stage: test
env:
- TESTS="1" ODOO_REPO="OCA/OCB"
env:
global:
- VERSION="13.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
matrix:
- LINT_CHECK="1"
- TESTS="1" ODOO_REPO="OCA/OCB"
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
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