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
23 doc8 api --ignore-path api/build
24 sphinx-build -W -b html api/ api/build
27 basepython = python2.7
31 basepython = python2.7
32 whitelist_externals = bash
34 pylint --disable=locally-disabled --ignore-imports=y --reports=n xtesting
37 basepython = python2.7
41 yamllint -s {[testenv:yamllint]files}
44 commands = nosetests xtesting/tests/unit
47 basepython = python2.7
49 xtesting/tests/unit/ci
50 xtesting/tests/unit/core
51 xtesting/tests/unit/energy
52 xtesting/tests/unit/utils/test_decorators.py
53 commands = nosetests --with-coverage --cover-tests \
54 --cover-package xtesting.ci.tier_builder \
55 --cover-package xtesting.ci.tier_handler \
56 --cover-package xtesting.core \
57 --cover-package xtesting.energy \
58 --cover-package xtesting.tests.unit \
59 --cover-package xtesting.utils.decorators \
60 --cover-min-percentage 100 {[testenv:cover]dirs}
63 basepython = python2.7
64 whitelist_externals = bash
65 path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*'
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"