2016-04-15 12:18:31 -07:00
|
|
|
[tox]
|
|
|
|
envlist=
|
|
|
|
py{27,34,35},
|
|
|
|
flake8
|
|
|
|
skipsdist=true
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length= 100
|
|
|
|
exclude= tests/*
|
|
|
|
|
|
|
|
[testenv]
|
2016-05-01 16:24:16 -07:00
|
|
|
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
|
|
|
commands =
|
|
|
|
py.test --cov-report= --cov=rtmbot {posargs:tests}
|
|
|
|
coveralls
|
|
|
|
|
2016-04-15 12:18:31 -07:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
2016-05-01 16:24:16 -07:00
|
|
|
-r{toxinidir}/requirements.txt
|
2016-04-15 12:18:31 -07:00
|
|
|
basepython =
|
|
|
|
py27: python2.7
|
|
|
|
py34: python3.4
|
|
|
|
py35: python3.5
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
basepython=python
|
|
|
|
deps=flake8
|
2016-05-01 16:24:16 -07:00
|
|
|
commands=
|
|
|
|
flake8 \
|
|
|
|
{toxinidir}/rtmbot.py \
|
|
|
|
{toxinidir}/rtmbot/core.py \
|
|
|
|
{toxinidir}/setup.py \
|
|
|
|
{toxinidir}/doc/example-plugins
|