From 0c964ebedcbfd4e999d4c626c81b92dffbd9ad3e Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Wed, 19 Oct 2016 06:02:18 -0700 Subject: [PATCH] Ensure testing is against current commit By using the centralized testing repo and its ansible.cfg file, a git clone of the plugins repo is made to ~/.ansible/ and used for testing. Effectively, testing of plugins is only done against the last merged commit. Set environment variables through tox so that ansible uses the library and plugin paths in tree. Change-Id: I61d60ae997d1bbcfdfa154a68908f7131ebc11c3 --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index b25eed7..aef7717 100644 --- a/tox.ini +++ b/tox.ini @@ -27,6 +27,12 @@ setenv = TEST_IDEMPOTENCE=false VIRTUAL_ENV={envdir} WORKING_DIR={toxinidir} + ANSIBLE_ACTION_PLUGINS={toxinidir}/action + ANSIBLE_CALLBACK_PLUGINS={toxinidir}/callback + ANSIBLE_CONNECTION_PLUGINS={toxinidir}/connection + ANSIBLE_FILTER_PLUGINS={toxinidir}/filter + ANSIBLE_LOOKUP_PLUGINS={toxinidir}/lookup + ANSIBLE_LIBRARY={toxinidir}/library [testenv:docs]