2014-01-06 03:53:26 +01:00
|
|
|
[tox]
|
2014-08-19 23:36:46 +02:00
|
|
|
envlist = py27,py34,pre-commit
|
2014-01-06 03:53:26 +01:00
|
|
|
|
|
|
|
[testenv]
|
2014-07-30 22:11:11 +02:00
|
|
|
usedevelop=True
|
2015-08-24 21:15:08 +02:00
|
|
|
passenv =
|
|
|
|
LD_LIBRARY_PATH
|
2015-07-03 04:35:20 +02:00
|
|
|
setenv =
|
|
|
|
HOME=/tmp
|
2014-07-15 21:59:25 +02:00
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
2014-01-06 03:53:26 +01:00
|
|
|
commands =
|
2015-03-26 23:28:02 +01:00
|
|
|
nosetests -v --with-coverage --cover-branches --cover-package=compose --cover-erase --cover-html-dir=coverage-html --cover-html {posargs}
|
2015-03-26 17:09:15 +01:00
|
|
|
flake8 compose tests setup.py
|
2014-07-15 22:22:16 +02:00
|
|
|
|
2015-08-24 21:15:08 +02:00
|
|
|
[testenv:pre-commit]
|
|
|
|
skip_install = True
|
|
|
|
deps =
|
|
|
|
pre-commit
|
|
|
|
commands =
|
|
|
|
pre-commit install
|
|
|
|
pre-commit run --all-files
|
|
|
|
|
2014-08-19 23:36:46 +02:00
|
|
|
[testenv:py27]
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
2015-07-03 04:35:20 +02:00
|
|
|
-rrequirements-dev.txt
|
2014-08-19 23:36:46 +02:00
|
|
|
|
|
|
|
[testenv:py34]
|
2015-07-03 04:35:20 +02:00
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
flake8
|
|
|
|
nose
|
2014-08-19 23:36:46 +02:00
|
|
|
|
2014-07-15 22:22:16 +02:00
|
|
|
[flake8]
|
2015-08-26 18:53:11 +02:00
|
|
|
# Allow really long lines for now
|
|
|
|
max-line-length = 140
|
2015-02-14 20:09:55 +01:00
|
|
|
exclude = compose/packages
|