2 envlist = docs,pep8,pylint,yamllint,bashate,bandit,py312,cover,perm,pre-commit
8 -c{toxinidir}/upper-constraints.txt
9 -chttps://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt
10 -r{toxinidir}/requirements.txt
11 -r{toxinidir}/test-requirements.txt
12 install_command = pip install {opts} {packages}
15 --junit-xml=junit.xml \
16 --html=report.html --self-contained-html \
17 --cov=xtesting --cov-reset --cov-report html \
21 basepython = python3.12
23 doc8 README.rst api --ignore-path api/build
24 sphinx-build -W -b html api/ api/build
27 basepython = python3.12
31 basepython = python3.12
32 allowlist_externals = bash
34 pylint --min-similarity-lines=10 \
35 --disable=locally-disabled --ignore-imports=y --reports=n --extension-pkg-whitelist=lxml xtesting
38 basepython = python3.12
39 files = .travis.yml ansible xtesting/ci
41 yamllint -s {[testenv:yamllint]files}
44 basepython = python3.12
47 commands = bashate {[testenv:bashate]files}
50 basepython = python3.12
51 commands = bandit -r xtesting -x tests -n 5 -ll -s B602
54 basepython = python3.12
55 dirs = xtesting/tests/unit/ci xtesting/tests/unit/core xtesting/tests/unit/utils/test_decorators.py
57 pytest --cov=xtesting --cov-reset --cov-report html --cov-fail-under=100 \
61 basepython = python3.12
62 allowlist_externals = bash
63 path=. -prune -not -path './.tox' -not -path './.git' -not -path './doc/reveal.js' \
64 -not -path './elements/xtesting/install.d' -not -name '*.pyc' -not -name '__pycache__' \
65 -not -path './doc/api/build'
68 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
69 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
71 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"
74 basepython = python3.12
76 pre-commit run --all-files --show-diff-on-failure