You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
996 B

  1. language: python
  2. cache:
  3. directories:
  4. - $HOME/.cache/pip
  5. - $HOME/.cache/pre-commit
  6. python:
  7. - "3.6"
  8. addons:
  9. postgresql: "9.6"
  10. apt:
  11. packages:
  12. - expect-dev # provides unbuffer utility
  13. stages:
  14. - linting
  15. - test
  16. jobs:
  17. include:
  18. - stage: linting
  19. name: "pre-commit"
  20. install: pip install pre-commit
  21. script: pre-commit run --all --show-diff-on-failure --verbose --color always
  22. after_success:
  23. before_install:
  24. - stage: test
  25. env:
  26. - TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1"
  27. - stage: test
  28. env:
  29. - TESTS=1 ODOO_REPO="OCA/OCB"
  30. env:
  31. global:
  32. - VERSION="14.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
  33. - MQT_DEP=PIP
  34. install:
  35. - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git
  36. ${HOME}/maintainer-quality-tools
  37. - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  38. - travis_install_nightly
  39. script:
  40. - travis_run_tests
  41. after_success:
  42. - travis_after_tests_success