From aa9498bb41afef1d3757af6e47104a01f10bf4bf Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 5 Oct 2015 23:27:19 +0200 Subject: [PATCH] Add separate testenv for vulture. --- .travis.yml | 3 +++ scripts/dev/ci_install.py | 2 +- tox.ini | 11 ++++++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2c9ca9e88..549c51c01 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ env: - TESTENV=py34 - TESTENV=unittests-nodisp - TESTENV=misc + - TESTENV=vulture - TESTENV=pep257 - TESTENV=pyflakes - TESTENV=pep8 @@ -46,6 +47,8 @@ matrix: env: TESTENV=unittests-nodisp - os: osx env: TESTENV=misc + - os: osx + env: TESTENV=vulture - os: osx env: TESTENV=pep257 - os: osx diff --git a/scripts/dev/ci_install.py b/scripts/dev/ci_install.py index e76f29233..d352128ee 100644 --- a/scripts/dev/ci_install.py +++ b/scripts/dev/ci_install.py @@ -40,7 +40,7 @@ except ImportError: TESTENV = os.environ['TESTENV'] 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') XVFB = TRAVIS_OS == 'linux' and TESTENV == 'py34' diff --git a/tox.ini b/tox.ini index 8fcf8e4e0..029690cb1 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [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] # https://bitbucket.org/hpk42/tox/issue/246/ - only needed for Windows though @@ -66,12 +66,17 @@ commands = basepython = python3 # For global .gitignore files passenv = HOME -deps = vulture==0.8.1 +deps = commands = - {envpython} scripts/link_pyqt.py --tox {envdir} {envpython} scripts/dev/misc_checks.py git {envpython} scripts/dev/misc_checks.py vcs {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 [testenv:pylint]