From cf3e3d7774c67b85569ce2a3bbcbe42e72e7b6bd Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Sat, 7 Oct 2017 10:22:04 +0200 Subject: [PATCH] [ADD] test building docs --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index fa01cfd6..e1e3a291 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,15 +10,22 @@ python: # - "pypy" # Disable because travis changes are affecting us - "pypy3" +addons: + apt: + packages: + - realpath + # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors install: - pip install -r requirements.txt - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then pip install -r https://raw.githubusercontent.com/OCA/OCB/8.0/requirements.txt; fi - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then pip install -r https://raw.githubusercontent.com/OCA/OCB/9.0/requirements.txt; fi + - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then pip install sphinx; fi # command to run tests, e.g. python setup.py test script: - flake8 ~/OCA/openupgradelib + - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then git clone --single-branch --depth=1 https://github.com/OCA/openupgrade ~/OCA/openupgrade; pip install -r ~/OCA/openupgrade/requirements.txt; sh ~/OCA/openupgrade/scripts/build_openupgrade_docs; fi - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then export PYTHONPATH=~/OCA/openupgradelib:$PYTHONPATH; fi - coverage run setup.py test - python setup.py install