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.

63 lines
3.0 KiB

10 years ago
10 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
  1. language: python
  2. sudo: false
  3. cache: pip
  4. python:
  5. - "2.7"
  6. addons:
  7. postgresql: "9.6" # 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. - unixodbc-dev
  14. - python-mysqldb
  15. - postfix # some tests want a local mail server
  16. env:
  17. global:
  18. - VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
  19. - TRANSIFEX_USER='transbot@odoo-community.org'
  20. - secure: Z06mZCN+Hm3myqHSOZpOOk1pd4oq1epAWZv6m9OX2bTNHbhyOVOGK6JWWsnDm/3DUCN1ZeLtSGOl9bvQfMa8ahQHA80MkLL16YlTvQV59Lh+L2gAYmxX+ogJCJgeQSVAXlGLscgkADCu/HzDlmatrDeROMtULn5i23j2qcyUNyM=
  21. matrix:
  22. - LINT_CHECK="1"
  23. - TRANSIFEX="1"
  24. - TESTS="1" ODOO_REPO="odoo/odoo" EXCLUDE="database_cleanup,auth_session_timeout,auth_brute_force,base_import_odoo,onchange_helper,test_onchange_helper"
  25. - TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="database_cleanup,auth_session_timeout,auth_brute_force,base_import_odoo,onchange_helper,test_onchange_helper"
  26. - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="onchange_helper,test_onchange_helper"
  27. - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="onchange_helper,test_onchange_helper"
  28. - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="database_cleanup"
  29. - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="database_cleanup"
  30. - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="auth_session_timeout"
  31. - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="auth_session_timeout"
  32. - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="auth_brute_force"
  33. - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="auth_brute_force"
  34. - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="base_import_odoo"
  35. - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="base_import_odoo"
  36. virtualenv:
  37. system_site_packages: true
  38. before_install:
  39. - "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
  40. - "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
  41. - "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"
  42. - "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"
  43. - "phantomjs --version"
  44. install:
  45. - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
  46. - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
  47. - travis_install_nightly
  48. # Install libraries that require specific development headers, but not during lint test
  49. - if ! [ "$LINT_CHECK" = "1" ]; then pip install pymssql MySQL-python pyodbc; fi
  50. - printf '[options]\n\nrunning_env = dev\n' > ${HOME}/.openerp_serverrc
  51. - ln -s ${TRAVIS_BUILD_DIR}/server_environment_files_sample ${TRAVIS_BUILD_DIR}/server_environment_files
  52. script:
  53. - travis_run_tests
  54. after_success:
  55. - travis_after_tests_success