Skip to content

Commit

Permalink
Make Tox Multi-OS Friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin authored and cas-- committed Jun 2, 2018
1 parent d642fa3 commit edd431a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ max-line-length = 120

[tox]
envlist = py27, flake8, docs
minversion=1.8
minversion=2.0

[testenv]
install_command = pip install --ignore-installed {opts} {packages}
passenv = DISPLAY PYTHONPATH
setenv = PYTHONPATH = {toxinidir}:
setenv = PYTHONPATH = {toxinidir}
sitepackages = True
deps =
twisted[tls]
Expand Down Expand Up @@ -61,20 +61,20 @@ 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}:{toxinidir}/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 = {toxinidir}:{toxinidir}/deluge/plugins
setenv = PYTHONPATH = {toxinidir}{:}{toxinidir}/deluge/plugins
whitelist_externals = bash
commands =
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 = {toxinidir}:{toxinidir}/deluge/plugins
setenv = PYTHONPATH = {toxinidir}{:}{toxinidir}/deluge/plugins
commands =
python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/
pytest -v --basetemp=_pytest_temp -s deluge/plugins
Expand Down

0 comments on commit edd431a

Please sign in to comment.