[tox]
envlist =
    ansible2.3,
    ansible2.10,
skipsdist = true

[testenv]
setenv =
    ANSIBLE_STRATEGY_PLUGINS={envsitepackagesdir}/ansible_mitogen/plugins/strategy

[testenv:ansible2.3]
basepython = python2
deps =
    ansible>=2.3,<2.4
    docker-py>=1.7.0
    mitogen>=0.2.10rc1,<0.3
install_command =
    python -m pip --no-python-version-warning install {opts} {packages}
commands =
    ./setup.yml -i hosts.ini -l 'localhost,centos5' {posargs}

[testenv:ansible2.10]
basepython = python3
deps =
    ansible>=2.10,<2.11
    docker>=1.8.0
    mitogen>=0.3.0rc1,<0.4
commands =
    ./setup.yml -i hosts.ini  -l '!centos5' {posargs}
