Merge "Switch to Tox for prepping and running tests"
This commit is contained in:
commit
6ebc5060e0
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
infra_config.yml
|
infra_config.yml
|
||||||
|
openstack.py
|
||||||
|
.tox
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
-e git+https://github.com/ansible/ansible.git@devel#egg=ansible
|
||||||
shade
|
shade
|
||||||
shade-ansible
|
shade-ansible
|
||||||
jinja2
|
jinja2
|
||||||
|
14
tox.ini
Normal file
14
tox.ini
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# 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
|
||||||
|
skipsdist = True
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
changedir = {toxinidir}
|
||||||
|
deps = -rrequirements.txt
|
||||||
|
commands = /usr/bin/wget -N https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/openstack.py
|
||||||
|
/bin/bash -c "/usr/bin/find -maxdepth 1 -name '*.yml' ! -name 'infra_config.yml'| /usr/bin/xargs -n1 ansible-playbook --syntax-check --list-tasks -i hosts"
|
Loading…
x
Reference in New Issue
Block a user