1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
[tox]
minversion = 1.6
# py35 before py27 to work around https://bugs.launchpad.net/testrepository/+bug/1229445
envlist = py{35,27},pep8,pep8-py{35}
skipsdist = True
[testenv]
usedevelop = True
whitelist_externals = find
sonar-runner
bash
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
bash tools/toxwrap.sh '{posargs}'
[testenv:pep8]
basepython = python2.7
commands = flake8
[testenv:pep8-py35]
basepython = python3.5
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[flake8]
ignore =
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
[hacking]
local-check-factory = pypowervm.hacking.checks.factory
[testenv:pylint]
commands = pylint pypowervm --rcfile=.pylint.rc
[testenv:sonar]
commands = sonar-runner -Dsonar.login={env:SONAR_USER:} -Dsonar.password={env:SONAR_PASSWORD:} -Dsonar.analysis.mode=incremental -Dsonar.scm-stats.enabled=false -Dsonar.scm.enabled=false -Dsonar.host.url=http://{env:SONAR_SERVER:sonar-server}:9000 -Dsonar.jdbc.url=jdbc:mysql://{env:SONAR_SERVER:sonar-server}:3306/sonar
|