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.

40 lines
1.2 KiB

  1. language: python
  2. sudo: false
  3. cache: pip
  4. python:
  5. - "3.5"
  6. addons:
  7. postgresql: "9.6"
  8. apt:
  9. packages:
  10. - expect-dev # provides unbuffer utility
  11. - python-lxml # because pip installation is slow
  12. env:
  13. global:
  14. - VERSION="12.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
  15. matrix:
  16. - LINT_CHECK="1"
  17. - TESTS="1" ODOO_REPO="OCA/OCB"
  18. - TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
  19. before_install:
  20. - "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
  21. - "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
  22. - "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"
  23. - "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"
  24. - "phantomjs --version"
  25. install:
  26. - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  27. - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  28. - travis_install_nightly
  29. script:
  30. - travis_run_tests
  31. after_success:
  32. - travis_after_tests_success