Add separate testenv for vulture.

This commit is contained in:
Florian Bruhin 2015-10-05 23:27:19 +02:00
parent d7ca469d08
commit aa9498bb41
3 changed files with 12 additions and 4 deletions

View File

@ -14,6 +14,7 @@ env:
- TESTENV=py34 - TESTENV=py34
- TESTENV=unittests-nodisp - TESTENV=unittests-nodisp
- TESTENV=misc - TESTENV=misc
- TESTENV=vulture
- TESTENV=pep257 - TESTENV=pep257
- TESTENV=pyflakes - TESTENV=pyflakes
- TESTENV=pep8 - TESTENV=pep8
@ -46,6 +47,8 @@ matrix:
env: TESTENV=unittests-nodisp env: TESTENV=unittests-nodisp
- os: osx - os: osx
env: TESTENV=misc env: TESTENV=misc
- os: osx
env: TESTENV=vulture
- os: osx - os: osx
env: TESTENV=pep257 env: TESTENV=pep257
- os: osx - os: osx

View File

@ -40,7 +40,7 @@ except ImportError:
TESTENV = os.environ['TESTENV'] TESTENV = os.environ['TESTENV']
TRAVIS_OS = os.environ.get('TRAVIS_OS_NAME', None) TRAVIS_OS = os.environ.get('TRAVIS_OS_NAME', None)
INSTALL_PYQT = TESTENV in ('py34', 'py35', 'unittests-nodisp', 'misc', INSTALL_PYQT = TESTENV in ('py34', 'py35', 'unittests-nodisp', 'vulture',
'pylint') 'pylint')
XVFB = TRAVIS_OS == 'linux' and TESTENV == 'py34' XVFB = TRAVIS_OS == 'linux' and TESTENV == 'py34'

11
tox.ini
View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory. # and then run "tox" from this directory.
[tox] [tox]
envlist = py34,misc,pep257,pyflakes,pep8,mccabe,pylint,pyroma,check-manifest envlist = py34,misc,vulture,pep257,pyflakes,pep8,mccabe,pylint,pyroma,check-manifest
[testenv] [testenv]
# https://bitbucket.org/hpk42/tox/issue/246/ - only needed for Windows though # https://bitbucket.org/hpk42/tox/issue/246/ - only needed for Windows though
@ -66,12 +66,17 @@ commands =
basepython = python3 basepython = python3
# For global .gitignore files # For global .gitignore files
passenv = HOME passenv = HOME
deps = vulture==0.8.1 deps =
commands = commands =
{envpython} scripts/link_pyqt.py --tox {envdir}
{envpython} scripts/dev/misc_checks.py git {envpython} scripts/dev/misc_checks.py git
{envpython} scripts/dev/misc_checks.py vcs {envpython} scripts/dev/misc_checks.py vcs
{envpython} scripts/dev/misc_checks.py spelling {envpython} scripts/dev/misc_checks.py spelling
[testenv:vulture]
basepython = python3
deps = vulture==0.8.1
commands =
{envpython} scripts/link_pyqt.py --tox {envdir}
{envpython} scripts/dev/run_vulture.py {envpython} scripts/dev/run_vulture.py
[testenv:pylint] [testenv:pylint]