mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
Make Tox Multi-OS Friendly
This commit is contained in:
parent
d642fa3989
commit
edd431a304
10
tox.ini
10
tox.ini
@ -20,12 +20,12 @@ max-line-length = 120
|
|||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27, flake8, docs
|
envlist = py27, flake8, docs
|
||||||
minversion=1.8
|
minversion=2.0
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
install_command = pip install --ignore-installed {opts} {packages}
|
install_command = pip install --ignore-installed {opts} {packages}
|
||||||
passenv = DISPLAY PYTHONPATH
|
passenv = DISPLAY PYTHONPATH
|
||||||
setenv = PYTHONPATH = {toxinidir}:
|
setenv = PYTHONPATH = {toxinidir}
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
deps =
|
deps =
|
||||||
twisted[tls]
|
twisted[tls]
|
||||||
@ -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
|
commands = pytest -v --basetemp=_pytest_temp -s -m "todo" deluge/tests
|
||||||
|
|
||||||
[testenv:trial]
|
[testenv:trial]
|
||||||
setenv = {[testenv]setenv}:{toxinidir}/deluge/tests
|
setenv = {[testenv]setenv}{:}{toxinidir}/deluge/tests
|
||||||
commands =
|
commands =
|
||||||
python -c "import libtorrent as lt; print lt.__version__"
|
python -c "import libtorrent as lt; print lt.__version__"
|
||||||
python -m twisted.trial --reporter=deluge-reporter deluge.tests
|
python -m twisted.trial --reporter=deluge-reporter deluge.tests
|
||||||
|
|
||||||
[testenv:plugins]
|
[testenv:plugins]
|
||||||
setenv = PYTHONPATH = {toxinidir}:{toxinidir}/deluge/plugins
|
setenv = PYTHONPATH = {toxinidir}{:}{toxinidir}/deluge/plugins
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/
|
python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/
|
||||||
pytest -v --basetemp=_pytest_temp -s -m "not gtkui" deluge/plugins
|
pytest -v --basetemp=_pytest_temp -s -m "not gtkui" deluge/plugins
|
||||||
|
|
||||||
[testenv:pluginsgtkui]
|
[testenv:pluginsgtkui]
|
||||||
setenv = PYTHONPATH = {toxinidir}:{toxinidir}/deluge/plugins
|
setenv = PYTHONPATH = {toxinidir}{:}{toxinidir}/deluge/plugins
|
||||||
commands =
|
commands =
|
||||||
python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/
|
python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/
|
||||||
pytest -v --basetemp=_pytest_temp -s deluge/plugins
|
pytest -v --basetemp=_pytest_temp -s deluge/plugins
|
||||||
|
Loading…
x
Reference in New Issue
Block a user