From 83ea74e2f81366ca73865b9904e06870a64b348a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Sat, 4 Nov 2017 15:57:39 +0100 Subject: [PATCH] CI: Compile documentation on Travis --- .travis.yml | 5 ++++- setup.cfg | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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