2 envlist = docs,pep8,pylint,yamllint,py35,py27,perm,cover
7 -c{toxinidir}/upper-constraints.txt
8 -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike
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=xtesting \
21 basepython = python2.7
22 commands = sphinx-build -W -b html api/ api/_build
25 basepython = python2.7
29 basepython = python2.7
30 whitelist_externals = bash
32 pylint --disable=locally-disabled --ignore-imports=y --reports=n xtesting
35 basepython = python2.7
39 yamllint -s {[testenv:yamllint]files}
42 commands = nosetests xtesting/tests/unit
45 basepython = python2.7
47 xtesting/tests/unit/ci
48 xtesting/tests/unit/core
49 xtesting/tests/unit/energy
50 xtesting/tests/unit/utils/test_decorators.py
51 commands = nosetests --with-coverage --cover-tests \
52 --cover-package xtesting.ci.tier_builder \
53 --cover-package xtesting.ci.tier_handler \
54 --cover-package xtesting.core \
55 --cover-package xtesting.energy \
56 --cover-package xtesting.tests.unit \
57 --cover-package xtesting.utils.decorators \
58 --cover-min-percentage 100 {[testenv:cover]dirs}
61 basepython = python2.7
62 whitelist_externals = bash
63 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
66 find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \
67 -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
69 find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"