Skip to content

Commit 18c6a2f

Browse files
committed
run tox w/ a matrix of ansible versions
1 parent 4be5337 commit 18c6a2f

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

tox.ini

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
[tox]
2-
envlist = linters, py27, py3
2+
envlist = linters, py{27,36,37}-ansible{27,28,dev}
33

44
[testenv]
5+
pip_pre = true
56
deps = pipenv
67
mock
7-
ansible
8+
ansibledev: git+https://github.com/ansible/ansible.git
9+
ansible27: ansible<2.8
10+
ansible28: ansible<2.9
811
commands=
12+
pipenv --python {basepython}
913
pipenv install --dev #--ignore-pipfile --dev
1014
pipenv run py.test -v test
1115

@@ -15,13 +19,3 @@ commands=
1519
pipenv install --dev
1620
pipenv run flake8 --version
1721
pipenv run flake8 setup.py docs ansible_runner test
18-
19-
[testenv:py27]
20-
commands =
21-
pipenv --python 2.7
22-
{[testenv]commands}
23-
24-
[testenv:py3]
25-
commands =
26-
pipenv --python 3
27-
{[testenv]commands}

0 commit comments

Comments
 (0)