diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-07-15 09:56:09 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2015-08-10 11:58:43 +0200 |
commit | e0af593277a26192992f939f24e6df3a0ec959f6 (patch) | |
tree | 3cedda2da91233565e5c318d919ca8ad7efbf722 /tox.ini | |
parent | 3a1fd9c92560a79e3f01e321cbed9b7deb837134 (diff) | |
download | pki-e0af593277a26192992f939f24e6df3a0ec959f6.tar.gz pki-e0af593277a26192992f939f24e6df3a0ec959f6.tar.xz pki-e0af593277a26192992f939f24e6df3a0ec959f6.zip |
Rewrite pylint-build-scan as improved Python script
The upgrade scripts don't have a .py file extension. For this reason
they are not picked up by pylint in tox.ini. Tox doesn't support shell
scripting. In order to check all files I rewrote the
pylint-build-scan.sh script as Python script.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 29 |
1 files changed, 14 insertions, 15 deletions
@@ -31,11 +31,11 @@ deps = [testenv:py27] sitepackages = True commands = - python2.7 {envbindir}/pkidestroy --help - python2.7 {envbindir}/pkispawn --help - python2.7 {envbindir}/pki-server --help - python2.7 {envbindir}/pki-server-upgrade --help - python2.7 {envbindir}/pki-upgrade --help + {envpython} {envbindir}/pkidestroy --help + {envpython} {envbindir}/pkispawn --help + {envpython} {envbindir}/pki-server --help + {envpython} {envbindir}/pki-server-upgrade --help + {envpython} {envbindir}/pki-upgrade --help py.test --capture=no --strict {posargs} [testenv:lint] @@ -44,16 +44,15 @@ sitepackages = True deps = pylint commands = - pylint \ - {envsitepackagesdir}/pki \ - {envbindir}/pkidestroy \ - {envbindir}/pkispawn \ - {envbindir}/pki-server \ - {envbindir}/pki-server-upgrade \ - {envbindir}/pki-upgrade \ - {envbindir}/pki \ - --rcfile={toxinidir}/dogtag.pylintrc \ - {posargs} + {envpython} {toxinidir}/pylint-build-scan.py tox + +[testenv:lint3k] +basepython = python2.7 +sitepackages = True +deps = + pylint +commands = + {envpython} {toxinidir}/pylint-build-scan.py tox -- --py3k [testenv:pep8] basepython = python2.7 |