diff options
author | Tobias Henkel <tobias.henkel@bmw.de> | 2019-01-19 13:33:39 +0100 |
---|---|---|
committer | Tobias Henkel <tobias.henkel@bmw.de> | 2019-03-15 09:09:16 +0100 |
commit | cd9827e6649b7f14513c2f201afc9e9d46998ddb (patch) | |
tree | f89c2370385812fa82b64bd61a63a34a508d19c0 /tox.ini | |
parent | c91335b5279872d90b285b087a0c2ddb85fc4f77 (diff) | |
download | zuul-cd9827e6649b7f14513c2f201afc9e9d46998ddb.tar.gz |
Manage ansible installations within zuul
As a first step towards supporting multiple ansible versions we need
tooling to manage ansible installations. This moves the installation
of ansible from the requirements.txt into zuul. This is called as a
setup hook to install the ansible versions into
<prefix>/lib/zuul/ansible. Further this tooling abstracts knowledge
that the executor must know in order to actually run the correct
version of ansible.
The actual usage of multiple ansible versions will be done in
follow-ups.
For better maintainability the ansible plugins live in
zuul/ansible/base where plugins can be kept in different versions if
necessary. For each supported ansible version there is a specific
folder that symlinks the according plugins.
Change-Id: I5ce1385245c76818777aa34230786a9dbaf723e5
Depends-On: https://review.openstack.org/623927
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -25,6 +25,7 @@ install_command = pip install {opts} {packages} whitelist_externals = bash deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt +commands_pre = zuul-manage-ansible -v commands = stestr run {posargs} stestr slowest @@ -49,6 +50,7 @@ commands = bindep test # --ignore-missing-imports tells mypy to not try to follow imported modules # out of the current tree. As you might expect, we don't want to run static # type checking on the world - just on ourselves. +commands_pre = commands = flake8 {posargs} mypy --ignore-missing-imports zuul @@ -67,6 +69,7 @@ commands = [testenv:docs] deps = -r{toxinidir}/doc/requirements.txt -r{toxinidir}/test-requirements.txt +commands_pre = commands = sphinx-build -E -W -d doc/build/doctrees -b html doc/source/ doc/build/html @@ -74,10 +77,12 @@ commands = commands = {posargs} [testenv:nodepool] +commands_pre = install_command = {[nodeenv]install_command} commands = stestr run --concurrency=1 --test-path ./tests/nodepool {posargs} [testenv:remote] +commands_pre = zuul-manage-ansible -v commands = stestr run --concurrency=1 --test-path ./tests/remote {posargs} passenv = ZUUL_TEST_ROOT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_LOG_DEFAULTS ZUUL_REMOTE_IPV4 ZUUL_SSH_KEY NODEPOOL_ZK_HOST install_command = {[nodeenv]install_command} |