aboutsummaryrefslogtreecommitdiffstats
path: root/infra-healthcheck/tox.ini
blob: 0bd2e5acc729a1b9c5d5698af93fe52bf0c0fd03 (plain)
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
47
48
49
[tox]
envlist = pylint,yamllint,bashate,py3

[testenv]
usedevelop = True
deps =
  -chttps://git.opnfv.org/functest/plain/upper-constraints.txt
  -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=master}
  -r{toxinidir}/requirements.txt
install_command = pip install {opts} {packages}

[testenv:pep8]
basepython = python3
commands = flake8

[testenv:pylint]
basepython = python3
whitelist_externals = pylint
modules =
  infra_healthcheck
commands =
  pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules}

[testenv:yamllint]
whitelist_externals = yamllint
basepython = python3
files =
  docker
commands =
  yamllint {[testenv:yamllint]files}

[testenv:py3]
whitelist_externals = nosetests
basepython = python3
commands = nosetests --with-xunit \
  --with-coverage \
  --cover-tests \
  --cover-package=infra_healthcheck \
  --cover-xml \
  --cover-html \
  infra_healthcheck

[testenv:bashate]
whitelist_externals = bashate
basepython = python3
files =
  scripts/check_onap_k8s.sh
  scripts/check_onap_helm.sh
commands = bashate {[testenv:bashate]files} -i E006