|
| 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 | + # for aeroo |
| 25 | + - cups |
| 26 | + - libcups2-dev |
| 27 | +# Search your packages here: |
| 28 | +# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise |
| 29 | +# - wkhtmltopdf # only add if needed and check the before_install section below |
| 30 | + |
| 31 | +# set up an X server to run wkhtmltopdf. |
| 32 | +#before_install: |
| 33 | +# - "export DISPLAY=:99.0" |
| 34 | +# - "sh -e /etc/init.d/xvfb start" |
| 35 | + |
| 36 | +env: |
| 37 | + global: |
| 38 | + - VERSION="9.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" |
| 39 | + # - TRANSIFEX_USER='transbot@odoo-community.org' |
| 40 | + # This line contains the encrypted transifex password |
| 41 | + # To encrypt transifex password, install travis ruby utils with: |
| 42 | + # $ gem install travis --user-install |
| 43 | + # and use: |
| 44 | + # $ travis encrypt TRANSIFEX_PASSWORD=your-password -r owner/project |
| 45 | + # Secure list for current OCA projects is in https://github.com/OCA/maintainer-quality-tools/issues/194 |
| 46 | + # - secure: PjP88tPSwimBv4tsgn3UcQAD1heK/wcuSaSfhi2xUt/jSrOaTmWzjaW2gH/eKM1ilxPXwlPGyAIShJ2JJdBiA97hQufOeiqxdkWDctnNVVEDx2Tk0BiG3PPYyhXPgUZ+FNOnjZFF3pNWvzXTQaB0Nvz8plqp93Ov/DEyhrCxHDs= |
| 47 | + # Use the following lines if you need to manually change the transifex project slug or/and the transifex organization. |
| 48 | + # The default project slug is owner-repo_name-version (with dash in the version string). |
| 49 | + # The default organization is the owner of the repo. |
| 50 | + # The default fill up resources (TM) is True. |
| 51 | + # The default team is 23907. https://www.transifex.com/organization/oca/team/23907/ |
| 52 | + # - TRANSIFEX_PROJECT_SLUG= |
| 53 | + # - TRANSIFEX_ORGANIZATION= |
| 54 | + # - TRANSIFEX_FILL_UP_RESOURCES= |
| 55 | + # - TRANSIFEX_TEAM= |
| 56 | + |
| 57 | + matrix: |
| 58 | + # - LINT_CHECK="1" |
| 59 | + # - TRANSIFEX="1" |
| 60 | + - TESTS="1" ODOO_REPO="odoo/odoo" |
| 61 | + # - TESTS="1" ODOO_REPO="OCA/OCB" |
| 62 | +# either use the two lines above or the two below. Don't change the default if |
| 63 | +# it's not necessary (it is only necessary if modules in your repository can't |
| 64 | +# be installed in the same database. And you get a huge speed penalty in your |
| 65 | +# tests) |
| 66 | +# - TESTS="1.0" ODOO_REPO="odoo/odoo" UNIT_TEST="1" |
| 67 | +# - TESTS="1.0" ODOO_REPO="OCA/OCB" UNIT_TEST="1" |
| 68 | + |
| 69 | +virtualenv: |
| 70 | + system_site_packages: true |
| 71 | + |
| 72 | +install: |
| 73 | + - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools |
| 74 | + - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} |
| 75 | + - travis_install_nightly |
| 76 | + |
| 77 | +script: |
| 78 | + - travis_run_tests |
| 79 | + |
| 80 | +after_success: |
| 81 | + - travis_after_tests_success |
0 commit comments