[Tests] Combine echo lines into python cmd for tox docs

This commit is contained in:
Calum Lind 2016-05-25 11:06:48 +01:00
parent 2a8388d262
commit 7e229ceb2f
1 changed files with 3 additions and 4 deletions

View File

@ -186,11 +186,10 @@ whitelist_externals =
[testenv:docs]
sitepackages = {[docsbase]sitepackages}
deps = {[docsbase]deps}
whitelist_externals = echo
commands =
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 -c "print '> 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';\
import subprocess, sys; proc = subprocess.Popen(\
'python setup.py build_docs', shell=True, stderr=subprocess.PIPE);\
err = proc.communicate()[1]; print err; sys.exit(bool(err))"