.travis.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. language: python
  2. sudo: false
  3. cache: pip
  4. python:
  5. - "2.7"
  6. addons:
  7. postgresql: "9.2" # minimal postgresql version for the daterange method
  8. apt:
  9. packages:
  10. - expect-dev # provides unbuffer utility
  11. - python-lxml # because pip installation is slow
  12. env:
  13. global:
  14. - VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
  15. - TRANSIFEX_USER='transbot@odoo-community.org'
  16. - secure: Z06mZCN+Hm3myqHSOZpOOk1pd4oq1epAWZv6m9OX2bTNHbhyOVOGK6JWWsnDm/3DUCN1ZeLtSGOl9bvQfMa8ahQHA80MkLL16YlTvQV59Lh+L2gAYmxX+ogJCJgeQSVAXlGLscgkADCu/HzDlmatrDeROMtULn5i23j2qcyUNyM=
  17. matrix:
  18. - LINT_CHECK="1"
  19. - TRANSIFEX="1"
  20. - TESTS="1" ODOO_REPO="odoo/odoo"
  21. - TESTS="1" ODOO_REPO="OCA/OCB"
  22. virtualenv:
  23. system_site_packages: true
  24. install:
  25. - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  26. - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  27. - travis_install_nightly
  28. - printf '[options]\n\nrunning_env = dev\n' > ${HOME}/.openerp_serverrc
  29. - ln -s ${TRAVIS_BUILD_DIR}/server_environment_files_sample ${TRAVIS_BUILD_DIR}/server_environment_files
  30. script:
  31. - travis_run_tests
  32. after_success:
  33. - travis_after_tests_success