summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 3581facc86a544e7645e8d8071519aaf134cb01b (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[tox]
minversion = 1.6
skipsdist = True
envlist = cover,
    docs,
    pep8,
    py26,
    py27,
    py34,
    pylint,
    update-states

[testenv]
usedevelop = True
install_command = pip install {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:docs]
basepython = python2.7
deps = {[testenv:py27]deps}
commands = python setup.py build_sphinx
    doc8 doc/source

[testenv:update-states]
basepython = python2.7
deps = {[testenv:py27]deps}
    pydot2
commands = {toxinidir}/tools/update_states.sh

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

[testenv:pep8]
commands = flake8 {posargs}

[testenv:pylint]
setenv = VIRTUAL_ENV={envdir}
deps = {[testenv]deps}
    pylint==0.26.0
commands = pylint --rcfile=pylintrc taskflow

[testenv:cover]
basepython = python2.7
deps = {[testenv:py27]deps}
   coverage>=3.6
commands = python setup.py testr --coverage --testr-args='{posargs}'

[testenv:venv]
basepython = python2.7
deps = {[testenv:py27]deps}
commands = {posargs}

[flake8]
builtins = _
exclude = .venv,.tox,dist,doc,./taskflow/openstack/common,*egg,.git,build,tools

[hacking]
import_exceptions = six.moves
    taskflow.test.mock
    unittest.mock

# NOTE(imelnikov): pyXY envs are considered to be default, so they must have
# richest set of test requirements
[testenv:py26]
basepython = python2.6
deps = {[testenv]deps}
    MySQL-python
    eventlet>=0.15.1
    SQLAlchemy>=0.7.8,<=0.8.99

[testenv:py27]
deps = {[testenv]deps}
    MySQL-python
    eventlet>=0.15.1
    SQLAlchemy>=0.7.8,<=0.9.99
    doc8
commands = 
    python setup.py testr --slowest --testr-args='{posargs}'
    sphinx-build -b doctest doc/source doc/build
    doc8 doc/source

[testenv:py34]
deps = {[testenv]deps}
    SQLAlchemy>=0.7.8,<=0.9.99
    PyMySQL>=0.6.2