summaryrefslogtreecommitdiff
path: root/tox.ini
blob: b2d3b7b83cf6e1f6f9443bc70628a912dc9a30cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[tox]
minversion = 1.6
skipsdist = True
envlist = py26,py27,py33,pep8,docs,sample_config

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'

[testenv:py33]
deps = -r{toxinidir}/requirements-py3.txt
       -r{toxinidir}/test-requirements-py3.txt
       nose
commands =
  nosetests \
      keystone/tests/test_cache_backend_mongo.py \
      keystone/tests/test_injection.py \
      keystone/tests/test_singular_plural.py \
      keystone/tests/unit

[testenv:pep8]
envdir = {toxworkdir}/venv
commands = 
  flake8 {posargs}

[tox:jenkins]
downloadcache = ~/cache/pip

[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands = python setup.py testr --coverage --testr-args='{posargs}'

[testenv:venv]
commands = {posargs}

[testenv:debug]

commands =
 {toxinidir}/tools/debug_helper.sh {posargs}

[flake8]
filename= *.py,keystone-*
show-source = true

# H803  Commit message should not end with a period (do not remove per list discussion)
ignore = H803

builtins = _
exclude=.venv,.git,.tox,build,dist,doc,*openstack/common*,*lib/python*,*egg,tools,vendor,.update-venv,*.ini

[testenv:docs]
envdir = {toxworkdir}/venv
commands=
    python setup.py build_sphinx

[testenv:sample_config]
envdir = {toxworkdir}/venv
commands = {toxinidir}/tools/config/generate_sample.sh

[hacking]
import_exceptions = keystone.openstack.common.gettextutils._
local-check-factory = keystone.hacking.checks.factory