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.

47 lines
1.8 KiB

  1. language: python
  2. sudo: false
  3. cache: pip
  4. python:
  5. - "3.5"
  6. addons:
  7. postgresql: "9.6"
  8. postgresql: "9.3" # minimal postgresql version for the base_import_security_group module
  9. # more info: https://github.com/OCA/maintainer-quality-tools/issues/432
  10. apt:
  11. packages:
  12. - expect-dev # provides unbuffer utility
  13. - python-lxml # because pip installation is slow
  14. env:
  15. global:
  16. - VERSION="12.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
  17. - TRANSIFEX_USER='transbot@odoo-community.org'
  18. - secure: Z06mZCN+Hm3myqHSOZpOOk1pd4oq1epAWZv6m9OX2bTNHbhyOVOGK6JWWsnDm/3DUCN1ZeLtSGOl9bvQfMa8ahQHA80MkLL16YlTvQV59Lh+L2gAYmxX+ogJCJgeQSVAXlGLscgkADCu/HzDlmatrDeROMtULn5i23j2qcyUNyM=
  19. matrix:
  20. - LINT_CHECK="1"
  21. - TRANSIFEX="1"
  22. - TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="database_cleanup"
  23. - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="database_cleanup"
  24. - TESTS="1" ODOO_REPO="odoo/odoo" EXCLUDE="database_cleanup"
  25. - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="database_cleanup"
  26. before_install:
  27. - "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
  28. - "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
  29. - "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"
  30. - "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"
  31. - "phantomjs --version"
  32. install:
  33. - git clone 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. script:
  37. - travis_run_tests
  38. after_success:
  39. - travis_after_tests_success