|
| 1 | +language: python |
| 2 | +sudo: false |
| 3 | +cache: |
| 4 | + apt: true |
| 5 | + directories: |
| 6 | + - $HOME/.cache/pip |
| 7 | + |
| 8 | +python: |
| 9 | + - "2.7" |
| 10 | + |
| 11 | +addons: |
| 12 | + apt: |
| 13 | +# only add the two lines below if you need wkhtmltopdf for your tests |
| 14 | +# sources: |
| 15 | +# - pov-wkhtmltopdf |
| 16 | +# Search your sources alias here: |
| 17 | +# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json |
| 18 | + packages: |
| 19 | + - expect-dev # provides unbuffer utility |
| 20 | + - python-lxml # because pip installation is slow |
| 21 | + - python-simplejson |
| 22 | + - python-serial |
| 23 | + - python-yaml |
| 24 | +# Search your packages here: |
| 25 | +# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise |
| 26 | +# - wkhtmltopdf # only add if needed and check the before_install section below |
| 27 | + |
| 28 | +# set up an X server to run wkhtmltopdf. |
| 29 | +#before_install: |
| 30 | +# - "export DISPLAY=:99.0" |
| 31 | +# - "sh -e /etc/init.d/xvfb start" |
| 32 | + |
| 33 | +env: |
| 34 | + global: |
| 35 | + - VERSION="8.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" |
| 36 | + - TRANSIFEX_USER='jjscarafia' |
| 37 | + # to get secure, run 'travis encrypt TRANSIFEX_PASSWORD=[transifex_password] -r [github_repo]' |
| 38 | + # example of github repo 'ingadhoc/odoo-infrastructure' |
| 39 | + - secure: paV32Mnt1ZLsr2YZNUYFt6TbOfJtV+fqElATUAL2kG6TccFh0cjDzvLTt4xCJ3iok8ElLydKX0gGdtD6NuhZaoXV1heXlnSBNA0NkBjD4DD64aQQafFGO/Lqh1BC60eWAWrKxoHiLRxH3YBLpjNWYMfgjHhbJELzFaGg5bExWtBZSZ7W3x58ol6lEnO2qr2lqMbkEKQ5S6zl297BP4oadRo2VFxiDxi86p7XNCHC1EPOP/0GQZgM80BzP1Dz87R8NnQ8K28rbf2HeLzyxauRNBFvitBndR1fsAZww3KJtfdqkhKVfI6eghAOHJPt6VEz8VkxKesTmyyBhvQFko4UzWn+OFEAFdcU9qVA6nZK60sN53ENUz20YHP+36MgGIBGwRNduKF8V13Xc9bHLkCSL6AmHNNRn4lx+zDcPkjj7Bkw+rMB/aPUnQHkM/NkFhvbLluCQ7aLuyrLLrF72RNVNTmNiPt+UWu/4mshi9U3nsULXZWK9XX7rR8/iEZuBilLBftTT3tmi+3/w8Qo9mOBmZhGAK5UAT8eGPu6xh1KC7wh2F681LwFN1Y4FvY/fH3uM7qGCENumZGBSkCplMaxjgGhi6fg9QsdKXsQ9cvFNTWRRdcl1p3wX0fXp9CISZE8O9zqD2pk/o9p0kXL8PTGKcJwgQA/WDYRGsVkSGzxFPA= |
| 40 | + - TRANSIFEX_ORGANIZATION='adhoc' |
| 41 | + - TRANSIFEX_TEAM='46451' |
| 42 | + |
| 43 | + matrix: |
| 44 | + - LINT_CHECK="1" |
| 45 | + - TRANSIFEX="1" |
| 46 | + - TESTS="1" ODOO_REPO="odoo/odoo" |
| 47 | +# either use the two lines above or the two below. Don't change the default if |
| 48 | +# it's not necessary (it is only necessary if modules in your repository can't |
| 49 | +# be installed in the same database. And you get a huge speed penalty in your |
| 50 | +# tests) |
| 51 | +# - TESTS="1.0" ODOO_REPO="odoo/odoo" UNIT_TEST="1" |
| 52 | +# - TESTS="1.0" ODOO_REPO="OCA/OCB" UNIT_TEST="1" |
| 53 | + |
| 54 | +virtualenv: |
| 55 | + system_site_packages: true |
| 56 | + |
| 57 | +install: |
| 58 | + # repository requirements |
| 59 | + - pip install -r requirements.txt |
| 60 | + |
| 61 | + - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools |
| 62 | + - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} |
| 63 | + - travis_install_nightly |
| 64 | + |
| 65 | +script: |
| 66 | + - travis_run_tests |
| 67 | + |
| 68 | +after_success: |
| 69 | + - travis_after_tests_success |
0 commit comments