diff --git a/.travis.yml b/.travis.yml index bd365c1..c40c6bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,12 +9,15 @@ python: - 3.6 - nightly install: - - pip install pyyaml flake8 flake8-import-order coveralls + - pip install pyyaml flake8 flake8-import-order coveralls sphinx - if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi - pip install . script: - if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 .; fi - yamllint --strict $(git ls-files '*.yaml' '*.yml') - coverage run --source=yamllint setup.py test + - if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then + python setup.py build_sphinx; + fi after_success: coveralls diff --git a/setup.cfg b/setup.cfg index 4d5142d..82ba8ec 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,3 +3,9 @@ universal = 1 [flake8] import-order-style = pep8 + +[build_sphinx] +all-files = 1 +source-dir = docs +build-dir = docs/_build +warning-is-error = 1