Check docs on Travis

This commit is contained in:
Florian Bruhin 2016-03-15 22:46:49 +01:00
parent 07d31634c6
commit f1ec6e1e00
2 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,8 @@ matrix:
env: TESTENV=pylint
- os: linux
env: TESTENV=flake8
- os: linux
env: TESTENV=docs
- os: linux
env: TESTENV=vulture
- os: linux

View File

@ -43,7 +43,7 @@ except ImportError:
TESTENV = os.environ.get('TESTENV', None)
TRAVIS_OS = os.environ.get('TRAVIS_OS_NAME', None)
INSTALL_PYQT = TESTENV in ('py34', 'py35', 'py34-cov', 'py35-cov',
'unittests-nodisp', 'vulture', 'pylint')
'unittests-nodisp', 'vulture', 'pylint', 'docs')
XVFB = TRAVIS_OS == 'linux' and TESTENV == 'py34'
pip_packages = ['tox']
if TESTENV is not None and TESTENV.endswith('-cov'):
@ -128,6 +128,8 @@ elif TRAVIS_OS == 'linux':
pkgs += ['python3-pyqt5', 'python3-pyqt5.qtwebkit']
if TESTENV == 'eslint':
pkgs += ['npm', 'nodejs', 'nodejs-legacy']
if TESTENV == 'docs':
pkgs += ['asciidoc']
if pkgs:
fix_sources_list()