Skip to content
Snippets Groups Projects
Commit 20249aad authored by Robert Habermann's avatar Robert Habermann
Browse files

should not require sudo for regular run

parent ed9f7e35
No related branches found
No related tags found
No related merge requests found
# --------------------------------------------------------------------
# TOX Setup
# --------------------------------------------------------------------
[tox]
envlist =
cov_clean,
......@@ -17,7 +21,6 @@ commands =
# --------------------------------------------------------------------
# Coverage
# --------------------------------------------------------------------
[testenv:cov_clean]
whitelist_externals =
rm
......@@ -46,19 +49,21 @@ commands =
mv {toxinidir}/.coverage {toxinidir}/.coverage.data/.coverage.{envname}
[testenv:cov_report]
commands =
coverage combine .coverage.data
coverage html -d {toxinidir}/htmlcov
[testenv:cov_deploy]
whitelist_externals =
cp
sudo
commands =
coverage combine .coverage.data
coverage html -d {toxinidir}/htmlcov
sudo cp -a {toxinidir}/htmlcov /var/www/PyOTRS/
# --------------------------------------------------------------------
# Lint
# --------------------------------------------------------------------
[testenv:py3kwarn]
deps =
py3kwarn
......@@ -70,9 +75,6 @@ deps =
flake8
flake8-quotes
# NOTE(kgriffs): Run with py27 since some code branches assume the
# unicode type is defined, and pep8 complains in those cases when
# running under py3.
basepython =
python2.7
......@@ -87,7 +89,6 @@ commands =
# --------------------------------------------------------------------
# Documentation
# --------------------------------------------------------------------
[testenv:docs]
deps =
jinja2
......@@ -101,8 +102,6 @@ deps =
whitelist_externals =
rm
pandoc
cp
sudo
basepython =
python2.7
......@@ -112,5 +111,13 @@ commands =
pandoc -f markdown -t rst -o {toxinidir}/docs/source/changelog_pandoc.txt CHANGELOG.md
pandoc -f markdown -t rst -o {toxinidir}/docs/source/contributing_pandoc.txt CONTRIBUTING.md
sphinx-build -b html {toxinidir}/docs/source {toxinidir}/docs/build
[testenv:docs_deploy]
whitelist_externals =
rm
cp
sudo
commands =
sudo rm -rf /var/www/PyOTRS/docs
sudo cp -a {toxinidir}/docs/build /var/www/PyOTRS/docs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment