Integrate SonarQube analysis.

This commit is contained in:
Andris Raugulis
2017-04-05 00:56:17 +03:00
parent f330608278
commit 9fe69841eb
4 changed files with 164 additions and 10 deletions

10
tox.ini
View File

@ -20,11 +20,12 @@ setenv =
SSHAUDIT = {toxinidir}/ssh-audit.py
test: COVERAGE_FILE = {toxinidir}/.coverage.{envname}
type,mypy: MYPYPATH = {toxinidir}/test/stubs
type,mypy: MYPYHTML = {toxinidir}/html/mypy
type,mypy: MYPYHTML = {toxinidir}/reports/html/mypy
commands =
test: coverage run --source ssh-audit -m -- pytest -v {posargs:test}
test: coverage run --source ssh-audit -m -- \
test: pytest -v --junitxml={toxinidir}/reports/junit.{envname}.xml {posargs:test}
test: coverage report --show-missing
test: - coverage html -d {toxinidir}/html/coverage.{envname}
test: coverage html -d {toxinidir}/reports/html/coverage.{envname}
py{33,34,35,36,37}-{type,mypy}: {[testenv:mypy]commands}
py{27,py,py3,33,34,35,36,37}-{lint,pylint}: {[testenv:pylint]commands}
py{27,py,py3,33,34,35,36,37}-{lint,flake8}: {[testenv:flake8]commands}
@ -42,7 +43,8 @@ commands =
coverage erase
coverage combine
coverage report --show-missing
- coverage html -d {toxinidir}/html/coverage
coverage xml -i -o {toxinidir}/reports/coverage.xml
coverage html -d {toxinidir}/reports/html/coverage
[testenv:mypy]
deps =