diff options
author | Calum Lind <calumlind@gmail.com> | 2018-05-19 22:51:24 +0200 |
---|---|---|
committer | Calum Lind <calumlind@gmail.com> | 2018-05-20 09:46:40 +0200 |
commit | 8439698336af99c7728cc08bc8855e2499af3d12 (patch) | |
tree | 251f28f83696d75d6db2f78e0055d7be8707ad7c /tox.ini | |
parent | [Docs] Fix Sphinx AutoDoc failing with gdk mask operation (diff) | |
download | deluge-8439698336af99c7728cc08bc8855e2499af3d12.tar.xz deluge-8439698336af99c7728cc08bc8855e2499af3d12.zip |
[Tox] Use platform independant toxworkdir instead of PWD
The use of `{env:PWD}` is not available on Windows so switch to
`{toxworkdir}` which is the directory where virtual environments
are created and sub directories for packaging reside.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -18,7 +18,7 @@ minversion=1.8 [testenv] install_command = pip install --ignore-installed {opts} {packages} passenv = DISPLAY PYTHONPATH -setenv = PYTHONPATH = {env:PWD}: +setenv = PYTHONPATH = {toxinidir}: sitepackages = True deps = twisted[tls] @@ -31,7 +31,7 @@ deps = mock slimit pillow -whitelist_externals = pytest +whitelist_externals = pytest bash commands = {envpython} setup.py test [pytest] @@ -54,21 +54,22 @@ commands = pytest -v --basetemp=_pytest_temp -s -m "gtkui" deluge/tests commands = pytest -v --basetemp=_pytest_temp -s -m "todo" deluge/tests [testenv:trial] -setenv = {[testenv]setenv}:{env:PWD}/deluge/tests +setenv = {[testenv]setenv}:{toxinidir}/deluge/tests commands = python -c "import libtorrent as lt; print lt.__version__" python -m twisted.trial --reporter=deluge-reporter deluge.tests [testenv:plugins] -setenv = PYTHONPATH = {env:PWD}:{env:PWD}/deluge/plugins +setenv = PYTHONPATH = {toxinidir}:{toxinidir}/deluge/plugins +whitelist_externals = bash commands = - python setup.py build_plugins --develop --install-dir={env:PWD}/deluge/plugins/ + python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/ pytest -v --basetemp=_pytest_temp -s -m "not gtkui" deluge/plugins [testenv:pluginsgtkui] -setenv = PYTHONPATH = {env:PWD}:{env:PWD}/deluge/plugins +setenv = PYTHONPATH = {toxinidir}:{toxinidir}/deluge/plugins commands = - python setup.py build_plugins --develop --install-dir={env:PWD}/deluge/plugins/ + python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/ pytest -v --basetemp=_pytest_temp -s deluge/plugins [testenv:py27] |