2 envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,perm,cover
8 -c{toxinidir}/upper-constraints.txt
9 -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=master
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
44 yamllint -s {[testenv:yamllint]files}
47 basepython = python2.7
49 ansible-lint ansible/site.yml
52 commands = nosetests xtesting/tests/unit
55 basepython = python2.7
58 commands = bashate {[testenv:bashate]files}
61 basepython = python2.7
63 xtesting/tests/unit/ci
64 xtesting/tests/unit/core
65 xtesting/tests/unit/energy
66 xtesting/tests/unit/utils/test_decorators.py
67 commands = nosetests --with-coverage --cover-tests \
68 --cover-package xtesting.core \
69 --cover-package xtesting.energy \
70 --cover-package xtesting.tests.unit \
71 --cover-package xtesting.utils.decorators \
72 --cover-min-percentage 100 {[testenv:cover]dirs}
75 basepython = python2.7
76 whitelist_externals = bash
77 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/reveal.js/*'
80 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
81 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
83 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"