mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
[Tox] [Travis] Fixes to test config
This commit is contained in:
parent
152eaa10dd
commit
b6b1d40516
2 changed files with 15 additions and 18 deletions
|
@ -3,6 +3,8 @@ language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
|
|
||||||
|
cache: pip
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- lsb_release -a
|
- lsb_release -a
|
||||||
- sudo add-apt-repository ppa:deluge-team/ppa -y
|
- sudo add-apt-repository ppa:deluge-team/ppa -y
|
||||||
|
@ -16,7 +18,7 @@ install:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache/
|
- PIP_DOWNLOAD_CACHE=$HOME/.cache/pip
|
||||||
- APTPACKAGES="python-libtorrent"
|
- APTPACKAGES="python-libtorrent"
|
||||||
- APTPACKAGES_GTKUI="python-gobject python-glade2"
|
- APTPACKAGES_GTKUI="python-gobject python-glade2"
|
||||||
- DISPLAY=:99.0
|
- DISPLAY=:99.0
|
||||||
|
|
29
tox.ini
29
tox.ini
|
@ -29,6 +29,7 @@ deps =
|
||||||
pyxdg
|
pyxdg
|
||||||
pytest
|
pytest
|
||||||
mock
|
mock
|
||||||
|
slimit
|
||||||
whitelist_externals = py.test
|
whitelist_externals = py.test
|
||||||
commands = {envpython} setup.py test
|
commands = {envpython} setup.py test
|
||||||
|
|
||||||
|
@ -97,20 +98,18 @@ commands =
|
||||||
python -c "import subprocess, sys; output = subprocess.check_output('isort -q --diff --recursive deluge docs packaging *.py', shell=True); print output; sys.exit(len(output) != 0)"
|
python -c "import subprocess, sys; output = subprocess.check_output('isort -q --diff --recursive deluge docs packaging *.py', shell=True); print output; sys.exit(len(output) != 0)"
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
# Force flake8 pip install as system flake8 uses hardcoded python path which imports the wrong libraries.
|
# Disble site packages to avoid using system flake8 which uses hardcoded python path which imports the wrong libraries.
|
||||||
install_command = pip -v install --ignore-installed {opts} {packages}
|
sitepackages = False
|
||||||
setenv = {[testenv]setenv}
|
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
flake8
|
flake8
|
||||||
pep8-naming
|
pep8-naming
|
||||||
slimit
|
|
||||||
commands =
|
commands =
|
||||||
flake8 --version
|
flake8 --version
|
||||||
flake8
|
flake8
|
||||||
|
|
||||||
[testenv:flake8-complexity]
|
[testenv:flake8-complexity]
|
||||||
setenv = {[testenv]setenv}
|
sitepackages = False
|
||||||
deps =
|
deps =
|
||||||
{[testenv:flake8]deps}
|
{[testenv:flake8]deps}
|
||||||
mccabe
|
mccabe
|
||||||
|
@ -118,14 +117,12 @@ commands = flake8 --exit-zero --max-complexity 15 deluge
|
||||||
|
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
# Force pylint pip install to avoid using system installed version
|
# Disable site packages to avoid using system installed version
|
||||||
install_command = pip -v install --ignore-installed {opts} {packages}
|
sitepackages = False
|
||||||
setenv = {[testenv]setenv}
|
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
pylint
|
pylint
|
||||||
whitelist_externals =
|
whitelist_externals = bash
|
||||||
bash
|
|
||||||
commands =
|
commands =
|
||||||
pylint --version
|
pylint --version
|
||||||
pylint deluge
|
pylint deluge
|
||||||
|
@ -176,7 +173,6 @@ commands =
|
||||||
[docsbase]
|
[docsbase]
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
changedir = docs
|
changedir = docs
|
||||||
install_command = pip install {opts} {packages}
|
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
sphinx
|
sphinx
|
||||||
|
@ -185,20 +181,19 @@ deps =
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
{[testenv]whitelist_externals}
|
{[testenv]whitelist_externals}
|
||||||
sphinx-build
|
sphinx-build
|
||||||
commands = sphinx-build -E -W -b html -d build/doctrees source build/html
|
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
sitepackages = {[docsbase]sitepackages}
|
sitepackages = {[docsbase]sitepackages}
|
||||||
changedir = {[docsbase]changedir}
|
|
||||||
install_command = {[docsbase]install_command}
|
|
||||||
deps = {[docsbase]deps}
|
deps = {[docsbase]deps}
|
||||||
whitelist_externals = {[docsbase]whitelist_externals}
|
whitelist_externals = echo
|
||||||
commands = sphinx-build -v -E -T -b html -d build/doctrees source build/html
|
commands =
|
||||||
|
echo "sphinx-apidoc --force -o docs/source/modules/ deluge deluge/plugins"
|
||||||
|
echo "sphinx-build -v -E -T -b html -d docs/build/doctrees docs/source docs/build/html"
|
||||||
|
python setup.py build_docs
|
||||||
|
|
||||||
[testenv:docscoverage]
|
[testenv:docscoverage]
|
||||||
sitepackages = {[docsbase]sitepackages}
|
sitepackages = {[docsbase]sitepackages}
|
||||||
changedir = {[docsbase]changedir}
|
changedir = {[docsbase]changedir}
|
||||||
install_command = {[docsbase]install_command}
|
|
||||||
deps =
|
deps =
|
||||||
{[docsbase]deps}
|
{[docsbase]deps}
|
||||||
coverage
|
coverage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue