2 envlist = docs,pep8,pylint,yamllint,bashate,py35,py27,perm,cover
7 -c{toxinidir}/upper-constraints.txt
8 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens}
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 = python2.7
24 --ignore-path api/build \
25 --ignore-path docs/release/release-notes/build \
26 --ignore-path docs/testing/developer/devguide/build \
27 --ignore-path docs/testing/developer/internship/security_group/build \
28 --ignore-path docs/testing/developer/internship/testapi_evolution/build \
29 --ignore-path docs/testing/developer/internship/unit_tests/build \
30 --ignore-path docs/testing/developer/internship/vnf_catalog/build \
31 --ignore-path docs/testing/user/configguide/build \
32 --ignore-path docs/testing/user/userguide/build \
34 docs/release/release-notes \
35 docs/testing/user/configguide \
36 docs/testing/user/userguide
37 sphinx-build -W -b html api/ api/build
38 sphinx-build -W -b html docs/release/release-notes docs/release/release-notes/build/html
39 sphinx-build -W -b html docs/testing/developer/devguide docs/testing/developer/devguide/build/html
40 sphinx-build -W -b html docs/testing/developer/internship/security_group docs/testing/developer/internship/security_group/build/html
41 sphinx-build -W -b html docs/testing/developer/internship/testapi_evolution docs/testing/developer/internship/testapi_evolution/build/html
42 sphinx-build -W -b html docs/testing/developer/internship/unit_tests docs/testing/developer/internship/unit_tests/build/html
43 sphinx-build -W -b html docs/testing/developer/internship/vnf_catalog docs/testing/developer/internship/vnf_catalog/build/html
44 sphinx-build -W -b html docs/testing/user/configguide docs/testing/user/configguide/build/html
45 sphinx-build -W -b html docs/testing/user/userguide docs/testing/user/userguide/build/html
48 basepython = python2.7
52 basepython = python2.7
53 whitelist_externals = bash
56 functest.opnfv_tests.openstack.rally
57 functest.opnfv_tests.openstack.refstack
58 functest.opnfv_tests.openstack.snaps
59 functest.opnfv_tests.openstack.tempest
60 functest.opnfv_tests.openstack.vping
61 functest.opnfv_tests.openstack.cinder
62 functest.opnfv_tests.sdn.odl
63 functest.opnfv_tests.vnf.router
64 functest.tests.unit.ci
65 functest.tests.unit.odl
66 functest.tests.unit.openstack.rally
67 functest.tests.unit.openstack.snaps
68 functest.tests.unit.openstack.tempest
69 functest.tests.unit.openstack.vping
70 functest.tests.unit.vnf.router
71 functest.tests.unit.utils
73 functest.utils.constants
75 functest.utils.functest_utils
80 --disable=locally-disabled functest | tee pylint.out"
81 pylint --reports=n --errors-only functest
82 pylint --disable=locally-disabled \
83 --disable=duplicate-code \
84 --ignore-imports=y --reports=n {[testenv:pylint]modules}
87 basepython = python2.7
92 functest/opnfv_tests/vnf
94 yamllint -s {[testenv:yamllint]files}
98 functest/tests/unit/ci
99 functest/tests/unit/core
100 functest/tests/unit/odl
101 functest/tests/unit/openstack
102 functest/tests/unit/vnf/epc
103 functest/tests/unit/utils
104 commands = nosetests {[testenv:py35]dirs}
107 basepython = python2.7
109 functest/opnfv_tests/openstack/cinder/write_data.sh
110 functest/opnfv_tests/openstack/cinder/read_data.sh
111 functest/opnfv_tests/openstack/rally/scenario/support/instance_dd_test.sh
112 functest/ci/download_images.sh
114 commands = bashate {[testenv:bashate]files}
117 basepython = python2.7
119 functest/tests/unit/ci
120 functest/tests/unit/odl
121 commands = nosetests --with-coverage --cover-tests \
122 --cover-package functest.ci.check_deployment \
123 --cover-package functest.opnfv_tests.sdn.odl \
124 --cover-package functest.tests.unit \
125 --cover-min-percentage 100 {[testenv:cover]dirs}
128 basepython = python2.7
129 whitelist_externals = bash
130 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
133 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
134 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
136 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"