forked from nytimes/collectd-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
31 lines (24 loc) · 803 Bytes
/
tox.ini
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
[tox]
envlist = pep8, py27
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
setenv = PYTHONPATH = {toxinidir}:{toxinidir}/collectd-rabbitmq
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
pytest-cov
pytest
commands = pytest --cov=./collectd_rabbitmq
[testenv:pep8]
commands = flake8 --exclude .git,__pycache__,vagrant
[testenv:pyflakes]
deps = pyflakes
commands = pyflakes collectd_rabbitmq tests setup.py
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
; -r{toxinidir}/requirements.txt
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:venv]
commands = {posargs}