From 18c6a2f1c7bede307bd7890b2edd439ec3ceca14 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 23 Apr 2019 15:03:02 -0400 Subject: [PATCH] run tox w/ a matrix of ansible versions --- tox.ini | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tox.ini b/tox.ini index 38b27190c..ae7ff7b30 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,15 @@ [tox] -envlist = linters, py27, py3 +envlist = linters, py{27,36,37}-ansible{27,28,dev} [testenv] +pip_pre = true deps = pipenv mock - ansible + ansibledev: git+https://github.com/ansible/ansible.git + ansible27: ansible<2.8 + ansible28: ansible<2.9 commands= + pipenv --python {basepython} pipenv install --dev #--ignore-pipfile --dev pipenv run py.test -v test @@ -15,13 +19,3 @@ commands= pipenv install --dev pipenv run flake8 --version pipenv run flake8 setup.py docs ansible_runner test - -[testenv:py27] -commands = - pipenv --python 2.7 - {[testenv]commands} - -[testenv:py3] -commands = - pipenv --python 3 - {[testenv]commands}