2 envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,bandit,py27,py37,cover,perm
7 -c{toxinidir}/upper-constraints.txt
8 -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
9 -r{toxinidir}/requirements.txt
10 -r{toxinidir}/test-requirements.txt
11 install_command = pip install {opts} {packages}
12 commands = nosetests --with-xunit \
15 --cover-package=functest \
21 basepython = python3.7
24 --ignore-path api/build \
25 --ignore-path docs/build \
26 --ignore-path docs/_build \
29 sphinx-build -W -b html api/ api/build
30 sphinx-build -W -n -b html docs docs/build/html
31 sphinx-build -W -n -b linkcheck docs docs/build/linkcheck
32 sphinx-build -W -b spelling -Dextensions=sphinxcontrib.spelling docs docs/build/spellcheck
35 basepython = python3.7
39 basepython = python3.7
42 --ignore-imports=y --min-similarity-lines=10 \
43 --disable=locally-disabled functest
46 basepython = python3.7
51 functest/opnfv_tests/openstack/rally/blacklist.yaml
52 functest/opnfv_tests/openstack/rally/rally_jobs.yaml
53 functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.yaml
54 functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml
55 functest/opnfv_tests/vnf
57 yamllint -s {[testenv:yamllint]files}
60 basepython = python3.7
62 ansible-lint ansible/site.yml
65 commands = nosetests functest/tests/unit
68 basepython = python3.7
70 functest/opnfv_tests/openstack/cinder/write_data.sh
71 functest/opnfv_tests/openstack/cinder/read_data.sh
72 functest/ci/add_proxy.sh
73 functest/ci/convert_images.sh
74 functest/ci/download_images.sh
76 commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
80 basepython = python3.7
81 commands = bandit -r functest -x tests -n 5 -ll -s B601,B602
84 basepython = python3.7
86 functest/tests/unit/odl
87 functest/tests/unit/openstack/vping
88 functest/tests/unit/openstack/cinder
89 commands = nosetests --with-coverage --cover-tests \
90 --cover-package functest.opnfv_tests.sdn.odl \
91 --cover-package functest.opnfv_tests.openstack.vping.vping_ssh \
92 --cover-package functest.opnfv_tests.openstack.cinder.cinder_test \
93 --cover-package functest.tests.unit \
94 --cover-min-percentage 100 {[testenv:cover]dirs}
97 basepython = python3.7
98 whitelist_externals = bash
99 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
102 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
103 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
105 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"