2 envlist = docs,pep8,pylint,yamllint,bashate,py35,py27,perm,cover
8 -c{toxinidir}/upper-constraints.txt
9 -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens
10 -r{toxinidir}/requirements.txt
11 -r{toxinidir}/test-requirements.txt
12 install_command = pip install {opts} {packages}
13 commands = nosetests --with-xunit \
16 --cover-package=xtesting \
22 basepython = python2.7
24 doc8 README.rst api --ignore-path api/build
25 sphinx-build -W -b html api/ api/build
28 basepython = python2.7
32 basepython = python2.7
33 whitelist_externals = bash
35 pylint --disable=locally-disabled --ignore-imports=y --reports=n xtesting
38 basepython = python2.7
42 yamllint -s {[testenv:yamllint]files}
45 commands = nosetests xtesting/tests/unit
48 basepython = python2.7
51 commands = bashate {[testenv:bashate]files}
54 basepython = python2.7
56 xtesting/tests/unit/ci
57 xtesting/tests/unit/core
58 xtesting/tests/unit/energy
59 xtesting/tests/unit/utils/test_decorators.py
60 commands = nosetests --with-coverage --cover-tests \
61 --cover-package xtesting.core \
62 --cover-package xtesting.energy \
63 --cover-package xtesting.tests.unit \
64 --cover-package xtesting.utils.decorators \
65 --cover-min-percentage 100 {[testenv:cover]dirs}
68 basepython = python2.7
69 whitelist_externals = bash
70 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/reveal.js/*'
73 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
74 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
76 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"