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.

48 lines
951 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. language: python
  2. sudo: false
  3. cache:
  4. apt: true
  5. directories:
  6. - $HOME/.cache/pip
  7. python:
  8. - "2.7"
  9. addons:
  10. postgresql: "9.6"
  11. apt:
  12. packages:
  13. - expect-dev # provides unbuffer utility
  14. - python-lxml # because pip installation is slow
  15. stages:
  16. - linting
  17. - test
  18. jobs:
  19. include:
  20. - stage: linting
  21. env:
  22. - LINT_CHECK="1"
  23. - stage: test
  24. env:
  25. - TESTS="1" ODOO_REPO="OCA/OCB"
  26. - stage: test
  27. env:
  28. - TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
  29. env:
  30. global:
  31. - VERSION="10.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
  32. install:
  33. - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  34. - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  35. - travis_install_nightly
  36. - printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc
  37. script:
  38. - travis_run_tests
  39. after_success:
  40. - travis_after_tests_success