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] [tox]
envlist = envlist =
cov_clean, cov_clean,
...@@ -17,7 +21,6 @@ commands = ...@@ -17,7 +21,6 @@ commands =
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# Coverage # Coverage
# -------------------------------------------------------------------- # --------------------------------------------------------------------
[testenv:cov_clean] [testenv:cov_clean]
whitelist_externals = whitelist_externals =
rm rm
...@@ -46,19 +49,21 @@ commands = ...@@ -46,19 +49,21 @@ commands =
mv {toxinidir}/.coverage {toxinidir}/.coverage.data/.coverage.{envname} mv {toxinidir}/.coverage {toxinidir}/.coverage.data/.coverage.{envname}
[testenv:cov_report] [testenv:cov_report]
commands =
coverage combine .coverage.data
coverage html -d {toxinidir}/htmlcov
[testenv:cov_deploy]
whitelist_externals = whitelist_externals =
cp cp
sudo sudo
commands = commands =
coverage combine .coverage.data
coverage html -d {toxinidir}/htmlcov
sudo cp -a {toxinidir}/htmlcov /var/www/PyOTRS/ sudo cp -a {toxinidir}/htmlcov /var/www/PyOTRS/
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# Lint # Lint
# -------------------------------------------------------------------- # --------------------------------------------------------------------
[testenv:py3kwarn] [testenv:py3kwarn]
deps = deps =
py3kwarn py3kwarn
...@@ -70,9 +75,6 @@ deps = ...@@ -70,9 +75,6 @@ deps =
flake8 flake8
flake8-quotes 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 = basepython =
python2.7 python2.7
...@@ -87,7 +89,6 @@ commands = ...@@ -87,7 +89,6 @@ commands =
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# Documentation # Documentation
# -------------------------------------------------------------------- # --------------------------------------------------------------------
[testenv:docs] [testenv:docs]
deps = deps =
jinja2 jinja2
...@@ -101,8 +102,6 @@ deps = ...@@ -101,8 +102,6 @@ deps =
whitelist_externals = whitelist_externals =
rm rm
pandoc pandoc
cp
sudo
basepython = basepython =
python2.7 python2.7
...@@ -112,5 +111,13 @@ commands = ...@@ -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/changelog_pandoc.txt CHANGELOG.md
pandoc -f markdown -t rst -o {toxinidir}/docs/source/contributing_pandoc.txt CONTRIBUTING.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 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 rm -rf /var/www/PyOTRS/docs
sudo cp -a {toxinidir}/docs/build /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