summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorbendikro <bro.devel+deluge@gmail.com>2016-05-22 17:14:46 +0200
committerbendikro <bro.devel+deluge@gmail.com>2016-05-24 21:10:53 +0200
commitc204b63653c25874598a75032ddd7bde4dc86e31 (patch)
treeeaa78422fc15dbab0b1bb6b89b14675ce5813b4f /tox.ini
parent[Docs] Fix docs in maketorrent.py (diff)
downloaddeluge-c204b63653c25874598a75032ddd7bde4dc86e31.tar.xz
deluge-c204b63653c25874598a75032ddd7bde4dc86e31.zip
[Docs] Make tox -e docs fail on sphinx warnings
* Also cleanup isort command
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini13
1 files changed, 8 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index 2b55a08ea..333a45291 100644
--- a/tox.ini
+++ b/tox.ini
@@ -95,7 +95,9 @@ whitelist_externals =
isort
commands =
isort --version
- python -c "import subprocess, sys; output = subprocess.check_output('isort -q --diff --recursive deluge docs packaging *.py', shell=True); print output; sys.exit(len(output) != 0)"
+ python -c "import subprocess, sys; output = subprocess.check_output(\
+ 'isort -q --diff --recursive deluge docs packaging *.py', shell=True);\
+ print output; sys.exit(bool(output))"
[testenv:flake8]
# Disble site packages to avoid using system flake8 which uses hardcoded python path which imports the wrong libraries.
@@ -180,16 +182,17 @@ deps =
pillow
whitelist_externals =
{[testenv]whitelist_externals}
- sphinx-build
[testenv:docs]
sitepackages = {[docsbase]sitepackages}
deps = {[docsbase]deps}
whitelist_externals = echo
commands =
- echo "sphinx-apidoc --force -o docs/source/modules/ deluge deluge/plugins"
- echo "sphinx-build -v -E -T -b html -d docs/build/doctrees docs/source docs/build/html"
- python setup.py build_docs
+ echo -e "sphinx-apidoc --force -o docs/source/modules/ deluge deluge/plugins"\
+ "\n""sphinx-build -v -E -T -b html -d docs/build/doctrees docs/source docs/build/html"
+ python -c "import subprocess, sys; proc = subprocess.Popen(\
+ 'python setup.py build_docs', shell=True, stdout=subprocess.PIPE);\
+ out, err = proc.communicate(); print err; sys.exit(bool(err))"
[testenv:docscoverage]
sitepackages = {[docsbase]sitepackages}