mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-29 05:46:58 +01:00
Pylint and flake8 is not supported on Python 2.6.
This commit is contained in:
parent
76849540be
commit
0ffb15dd54
13
.travis.yml
13
.travis.yml
@ -33,16 +33,17 @@ matrix:
|
|||||||
install:
|
install:
|
||||||
- pip install --upgrade tox coveralls codecov
|
- pip install --upgrade tox coveralls codecov
|
||||||
script:
|
script:
|
||||||
- if [ -z "${TOXENV##*py3*}" ]; then
|
- |
|
||||||
|
if [ -z "${TOXENV##*py3*}" ]; then
|
||||||
if [ -z "${TOXENV##*pypy3*}" ]; then
|
if [ -z "${TOXENV##*pypy3*}" ]; then
|
||||||
_pydir=$(dirname $(which python));
|
_pydir=$(dirname $(which python))
|
||||||
ln -s -- "${_pydir}/python" "${_pydir}/pypy3";
|
ln -s -- "${_pydir}/python" "${_pydir}/pypy3"
|
||||||
export TOXENV=${TOXENV}-test,${TOXENV}-lint;
|
export TOXENV=${TOXENV}-test,${TOXENV}-lint
|
||||||
else
|
else
|
||||||
export TOXENV=${TOXENV}-test,${TOXENV}-type,${TOXENV}-lint;
|
export TOXENV=${TOXENV}-test,${TOXENV}-type,${TOXENV}-lint
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
export TOXENV=${TOXENV}-test,${TOXENV}-lint;
|
export TOXENV=${TOXENV}-test,${TOXENV}-lint
|
||||||
fi
|
fi
|
||||||
- tox -e $TOXENV,cov
|
- tox -e $TOXENV,cov
|
||||||
after_success:
|
after_success:
|
||||||
|
11
tox.ini
11
tox.ini
@ -1,6 +1,7 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
py{26,27,py,py3}-{test,pylint,flake8,vulture}
|
py26-{test,vulture}
|
||||||
|
py{27,py,py3}-{test,pylint,flake8,vulture}
|
||||||
py{33,34,35,36,37}-{test,mypy,pylint,flake8,vulture}
|
py{33,34,35,36,37}-{test,mypy,pylint,flake8,vulture}
|
||||||
cov
|
cov
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
@ -12,8 +13,8 @@ deps =
|
|||||||
test,cov: {[testenv:cov]deps}
|
test,cov: {[testenv:cov]deps}
|
||||||
test,py{33,34,35,36,37}-{type,mypy}: colorama==0.3.7
|
test,py{33,34,35,36,37}-{type,mypy}: colorama==0.3.7
|
||||||
py{33,34,35,36,37}-{type,mypy}: {[testenv:mypy]deps}
|
py{33,34,35,36,37}-{type,mypy}: {[testenv:mypy]deps}
|
||||||
lint,pylint: {[testenv:pylint]deps}
|
py{27,py,py3,33,34,35,36,37}-{lint,pylint}: {[testenv:pylint]deps}
|
||||||
lint,flake8: {[testenv:flake8]deps}
|
py{27,py,py3,33,34,35,36,37}-{lint,flake8}: {[testenv:flake8]deps}
|
||||||
lint,vulture: {[testenv:vulture]deps}
|
lint,vulture: {[testenv:vulture]deps}
|
||||||
setenv =
|
setenv =
|
||||||
SSHAUDIT = {toxinidir}/ssh-audit.py
|
SSHAUDIT = {toxinidir}/ssh-audit.py
|
||||||
@ -25,8 +26,8 @@ commands =
|
|||||||
test: coverage report --show-missing
|
test: coverage report --show-missing
|
||||||
test: - coverage html -d {toxinidir}/html/coverage.{envname}
|
test: - coverage html -d {toxinidir}/html/coverage.{envname}
|
||||||
py{33,34,35,36,37}-{type,mypy}: {[testenv:mypy]commands}
|
py{33,34,35,36,37}-{type,mypy}: {[testenv:mypy]commands}
|
||||||
lint,pylint: {[testenv:pylint]commands}
|
py{27,py,py3,33,34,35,36,37}-{lint,pylint}: {[testenv:pylint]commands}
|
||||||
lint,flake8: {[testenv:flake8]commands}
|
py{27,py,py3,33,34,35,36,37}-{lint,flake8}: {[testenv:flake8]commands}
|
||||||
lint,vulture: {[testenv:vulture]commands}
|
lint,vulture: {[testenv:vulture]commands}
|
||||||
ignore_outcome =
|
ignore_outcome =
|
||||||
type: true
|
type: true
|
||||||
|
Loading…
Reference in New Issue
Block a user