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.

45 lines
1.5 KiB

7 years ago
7 years ago
  1. language: python
  2. sudo: false
  3. cache: pip
  4. python:
  5. - "3.5"
  6. addons:
  7. postgresql: "9.3" # minimal postgresql version for the base_import_security_group module
  8. # more info: https://github.com/OCA/maintainer-quality-tools/issues/432
  9. apt:
  10. packages:
  11. - expect-dev # provides unbuffer utility
  12. - python-lxml # because pip installation is slow
  13. env:
  14. global:
  15. - VERSION="11.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
  16. matrix:
  17. - LINT_CHECK="1"
  18. - TRANSIFEX="1"
  19. - TESTS="1" ODOO_REPO="OCA/OCB"
  20. - TESTS="1" ODOO_REPO="odoo/odoo"
  21. # EXCLUDE="database_cleanup"
  22. # - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="database_cleanup"
  23. # - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="database_cleanup"
  24. before_install:
  25. - "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
  26. - "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
  27. - "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
  28. - "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
  29. - "phantomjs --version"
  30. install:
  31. - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  32. - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  33. - travis_install_nightly
  34. script:
  35. - travis_run_tests
  36. after_success:
  37. - travis_after_tests_success