Skip to content

Commit

Permalink
[ADD] test building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Oct 7, 2017
1 parent 77e5db6 commit cf3e3d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf3e3d7

Please sign in to comment.