Initial commit
[ta/config-manager.git] / cmframework / tox.ini
1 [tox]
2 envlist = py27-pytest,pylint
3 setupdir=src
4
5 [testenv]
6
7 basepython = python2.7
8 setenv =
9     COVERAGE_FILE = .coverage{envname}
10
11 commands = /bin/cp -R {toxinidir}/test/mocked_dependencies/fm {toxworkdir}/py27-pytest/lib/python2.7/site-packages/
12            /bin/cp -R {toxinidir}/test/mocked_dependencies/cmdatahandlers {toxworkdir}/py27-pytest/lib/python2.7/site-packages/
13            /bin/cp -R {toxinidir}/test/mocked_dependencies/dss {toxworkdir}/py27-pytest/lib/python2.7/site-packages/
14            pytest -vv \
15            --basetemp={envtmpdir} \
16            --pep8 \
17            --cov cmframework \
18            --cov-branch \
19            --cov-report term \
20            --cov-report html:htmlcov \
21            {posargs:.}
22
23 deps=pytest
24      mock
25      pytest-cov
26      pytest-pep8
27      pytest-flakes
28      eventlet
29      requests
30      more-itertools==5.0.0
31
32 [pytest]
33 cache_dir = .pytest-cache
34 pep8maxlinelength = 100
35
36 [testenv:pylint]
37 commands = /bin/cp -R {toxinidir}/test/mocked_dependencies/fm {toxworkdir}/pylint/lib/python2.7/site-packages/
38            /bin/cp -R {toxinidir}/test/mocked_dependencies/cmdatahandlers {toxworkdir}/pylint/lib/python2.7/site-packages/
39            /bin/cp -R {toxinidir}/test/mocked_dependencies/dss {toxworkdir}/pylint/lib/python2.7/site-packages/
40            -pylint --rcfile={toxinidir}/.pylintrc {posargs:src}
41
42 deps=pylint==1.7.4
43      astroid==1.6.5
44      pymongo
45      requests
46      routes
47      eventlet
48      redis
49      pika
50      pyyaml
51      prettytable