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.

91 lines
3.9 KiB

6 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. apt:
  11. # sources:
  12. # Search your sources alias here:
  13. # https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  14. packages:
  15. - expect-dev # provides unbuffer utility
  16. - python-lxml # because pip installation is slow
  17. - python-simplejson
  18. - python-serial
  19. - python-yaml
  20. # Search your packages here:
  21. # https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
  22. # For wkhtmltopdf, see the env section below
  23. # Sometimes complicated website repos need Compass & SaSS:
  24. #before_install:
  25. # - rvm install ruby --latest
  26. # - gem install bootstrap-sass
  27. # - gem install compass --pre
  28. env:
  29. global:
  30. - VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
  31. # Set this variable to some version existing as linux-generic build on
  32. # https://github.com/wkhtmltopdf/wkhtmltopdf/releases
  33. # if you need to install wkhtmltopdf
  34. # - WKHTMLTOPDF_VERSION="0.12.4"
  35. # Set the above to install a `wkhtmltopdf` version that is not the one provided
  36. # by the `pov-wkhtmltopdf` repo.
  37. - PHANTOMJS_VERSION="latest"
  38. # The above line controls the PhantomJS version that is used for JS testing.
  39. # It is not necessary to include this value unless you are altering the default.
  40. # Use `OS` to skip the PhantomJS upgrade & use the system version instead.
  41. - WEBSITE_REPO="1"
  42. # Use the above line to install dependencies that are required for website repos:
  43. # * SASS & Bootstrap-SASS
  44. # * Compass
  45. - TRANSIFEX_USER='transbot@odoo-community.org'
  46. # This line contains the encrypted transifex password
  47. # To encrypt transifex password, install travis ruby utils with:
  48. # $ gem install travis --user-install
  49. # and use:
  50. # $ travis encrypt TRANSIFEX_PASSWORD=your-password -r owner/project
  51. # Secure list for current OCA projects is in https://github.com/OCA/maintainer-quality-tools/issues/194
  52. - secure: yHr0UC45NBliMtTpZCYhNc2BdRgiHtXSQKBejHHWw2MXvOogZ+JqdwuqCPbHeP3NIKJYruUpYzXNdqCGP4Vll4xueSsA8CzeFp+gdJqxK6Z+gZiUZJ4W+vqckt2Q6YfdfqIGV8csNEUITCdidarGFSI/3EmDV1xl7Kkq8IMaIhUgd29MQ/R4CzCVcXfdZiN/mXZG7Ta1mLilcZwO7wlVed5IDsOJzXXglkQIYUbp73IraZsp9euXnO7pu+OQz19FuAJWOcPFV7Mgg0cPq+6fU+7lqyAdoj6d5NFrUpjKYbuT88L8wFrto4k0AHXLtL7cl+KNYahXNtnIvfnKNIwJ2lDN61I024mx4f8TQ7PNvSfv+nEdy0KVVk7rlw/JgudWEZFNIjlLYSGn6xdQVgiTrY53GEr9ASd4e/ELdfrNmHUw2JdOM1sg7GA4uwjAoNsF2IMfuvQJyhJRqEXowt9PKEL0ww4uVpxrwZLNWfV+oVvw3iV+QtV9dO18/LMBOXRj/DnfjZ3HVLim4WqjbpsgP5biiCRxKOqeBv+8D3jRcDTK56G8KX9+HnJAhLct/r+DragLufE2yoMCnMHH9AbhyI2omOVM7RoQ9+7PJhsR9ipsifGD+5Xi14sRxOCLPy5yV27FuzwwLkiBowkqeuUaS57DqrRlBjIJK8+Ea53xr14=
  53. # Use the following lines if you need to manually change the transifex project slug or/and the transifex organization.
  54. # The default project slug is owner-repo_name-version (with dash in the version string).
  55. # The default organization is the owner of the repo.
  56. # The default fill up resources (TM) is True.
  57. # The default team is 23907. https://www.transifex.com/organization/oca/team/23907/
  58. # - TRANSIFEX_PROJECT_SLUG=
  59. # - TRANSIFEX_ORGANIZATION=
  60. # - TRANSIFEX_FILL_UP_RESOURCES=
  61. # - TRANSIFEX_TEAM=
  62. matrix:
  63. - LINT_CHECK="1"
  64. - TRANSIFEX="1"
  65. - TESTS="1" ODOO_REPO="odoo/odoo"
  66. - TESTS="1" ODOO_REPO="OCA/OCB"
  67. # either use the two lines above or the two below. Don't change the default if
  68. # it's not necessary (it is only necessary if modules in your repository can't
  69. # be installed in the same database. And you get a huge speed penalty in your
  70. # tests)
  71. # - TESTS="1.0" ODOO_REPO="odoo/odoo" UNIT_TEST="1"
  72. # - TESTS="1.0" ODOO_REPO="OCA/OCB" UNIT_TEST="1"
  73. virtualenv:
  74. system_site_packages: true
  75. install:
  76. - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  77. - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  78. - travis_install_nightly
  79. script:
  80. - travis_run_tests
  81. after_success:
  82. - travis_after_tests_success