infra-ansible/tox.ini
Ricardo Carrillo Cruz b15cf20050 Switch to Tox for prepping and running tests
Rather than using homegrown bash scripts, let's just use
tox which is a tool specifically designed for that.

Change-Id: If94c7148fd7a5e0ae43c2c49538138421e6498b7
2015-10-05 13:50:04 +02:00

15 lines
618 B
INI

# 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"