[tox]
envlist = {py27}

[testenv]
passenv = ELASTICSEARCH_HOST MONGO_HOST
commands =
    python setup.py nosetests --with-coverage --cover-inclusive --cover-erase {posargs}
    flake8 docido_sdk tests setup.py

deps =
    -rrequirements-dev.txt

[testenv:clean]
commands=
    coverage erase
deps =
    -rrequirements-dev.txt

[testenv:stats]
commands=
    coverage report
    coverage html
deps:
    -rrequirements-dev.txt

[tox]
envlist = {py27}-{mongo2,mongo3}

[testenv]
passenv = ELASTICSEARCH_HOST MONGO_HOST
commands =
    python setup.py nosetests --with-coverage --cover-inclusive --cover-erase {posargs}
    flake8 docido_sdk tests setup.py

deps =
    mongo2: pymongo<3
    mongo3: pymongo<4
    -rrequirements-dev.txt

[testenv:clean]
commands=
    coverage erase
deps =
    -rrequirements-dev.txt

[testenv:stats]
commands=
    coverage report
    coverage html
deps:
    -rrequirements-dev.txt

Test against mongo2 and mongo3
Test against mongo2 and mongo3
