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.

72 lines
2.5 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. language: python
  2. sudo: false
  3. cache: pip
  4. python:
  5. # For branches <= 10.0, put `- "2.7.13"`
  6. - "3.5"
  7. addons:
  8. # By default postgresql-9.1 is installed but there is issue related:
  9. # https://github.com/OCA/maintainer-quality-tools/issues/432#issuecomment-281580935
  10. # Better use higher PostgreSQL version
  11. postgresql: "9.5"
  12. apt:
  13. # sources:
  14. # Search your sources alias here:
  15. # https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  16. packages:
  17. - expect-dev # provides unbuffer utility
  18. # Search your packages here:
  19. # https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
  20. # For wkhtmltopdf, see the env section below
  21. # Sometimes complicated website repos need Compass & SaSS:
  22. #before_install:
  23. # - rvm install ruby --latest
  24. # - gem install bootstrap-sass
  25. # - gem install compass --pre
  26. env:
  27. global:
  28. - VERSION="11.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
  29. # Set this variable to some version existing as linux-generic build on
  30. # https://github.com/wkhtmltopdf/wkhtmltopdf/releases
  31. # if you need to install wkhtmltopdf
  32. # - WKHTMLTOPDF_VERSION="0.12.4"
  33. # Set the above to install a `wkhtmltopdf` version that is not the one provided
  34. # by the `pov-wkhtmltopdf` repo.
  35. - PHANTOMJS_VERSION="latest"
  36. # The above line controls the PhantomJS version that is used for JS testing.
  37. # It is not necessary to include this value unless you are altering the default.
  38. # Use `OS` to skip the PhantomJS upgrade & use the system version instead.
  39. - WEBSITE_REPO="1"
  40. # Use the above line to install dependencies that are required for website repos:
  41. # * SASS & Bootstrap-SASS
  42. # * Compass
  43. matrix:
  44. - LINT_CHECK="1"
  45. # use this to install a standalone database to export .pot files
  46. # - MAKEPOT="1"
  47. # add MAKEPOT="1" to a TEST line to export .pot files from
  48. # the test database after test success
  49. - TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
  50. - TESTS="1" ODOO_REPO="OCA/OCB"
  51. # either use the two lines above or the two below. Don't change the default if
  52. # it's not necessary (it is only necessary if modules in your repository can't
  53. # be installed in the same database. And you get a huge speed penalty in your
  54. # tests)
  55. # - TESTS="1.0" ODOO_REPO="odoo/odoo" UNIT_TEST="1"
  56. # - TESTS="1.0" ODOO_REPO="OCA/OCB" UNIT_TEST="1"
  57. install:
  58. - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  59. - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  60. - travis_install_nightly
  61. script:
  62. - travis_run_tests
  63. after_success:
  64. - travis_after_tests_success