diff --git a/.travis.yml b/.travis.yml index 874596b9..c3406024 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,25 @@ language: python +sudo: false +cache: + apt: true + directories: + - $HOME/.cache/pip python: - "2.7" -sudo: false -cache: pip - addons: apt: + sources: + - pov-wkhtmltopdf packages: - expect-dev # provides unbuffer utility - python-lxml # because pip installation is slow + - wkhtmltopdf + +before_install: + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" env: global: @@ -28,11 +37,10 @@ virtualenv: system_site_packages: true install: - - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools + - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} - travis_install_nightly - printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc - - pip install unidecode pyserial pycountry script: - travis_run_tests diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..de510661 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +unidecode +pyserial +pycountry