# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27, py34

[testenv]
commands = py.test -s tests/ example-client/test_client.py
deps =
    dateutils
    geojson
    pytest
    pytest-pythonpath
    rethinkdb
    six

[testenv:coverage]
basepython = python2.7
commands = py.test tests/ example-client/test_client.py \
    --cov reqon --cov example-client/reqon_client.py \
    --cov-config .coveragerc \
    --cov-report term-missing --pep8
deps =
    pytest-cov
    pytest-pep8
    {[testenv]deps}

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27_rethinkdb22, py27_rethinkdb23, py35_rethinkdb22, py35_rethinkdb23

[testenv]
commands = py.test tests/ example-client/test_client.py \
    --cov reqon --cov example-client/reqon_client.py \
    --cov-config .coveragerc \
    --cov-report term-missing \
    --cov-append \
    --pep8
deps =
    dateutils
    geojson
    pytest
    pytest-cov
    pytest-pep8
    pytest-pythonpath
    six

[testenv:py27_rethinkdb22]
basepython = python2.7
deps =
    rethinkdb==2.2.0.post6
    {[testenv]deps}

[testenv:py27_rethinkdb23]
basepython = python2.7
deps =
    rethinkdb==2.3.0
    {[testenv]deps}

[testenv:py35_rethinkdb22]
basepython = python3.5
deps =
    rethinkdb==2.2.0.post6
    {[testenv]deps}

[testenv:py35_rethinkdb23]
basepython = python3.5
deps =
    rethinkdb==2.3.0
    {[testenv]deps}

Test RethinkDB 2.2 and 2.3 on Python 2.7 and 3.5.
Test RethinkDB 2.2 and 2.3 on Python 2.7 and 3.5.
