mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-13 13:02:21 +00:00
Remove old artifacts when building new ones
For local dev, multiple iterations can wind up with multiple files in the build_artifact dir. Remove them when building so that the ls command works. Change-Id: Id309c34679d2c0b6d9380665a381af4b52495d19
This commit is contained in:
3
tox.ini
3
tox.ini
@@ -34,8 +34,7 @@ commands =
|
||||
[testenv:linters]
|
||||
passenv = *
|
||||
commands =
|
||||
{toxinidir}/tools/build.py
|
||||
ansible-galaxy collection build --force {toxinidir} --output-path {toxinidir}/build_artifact
|
||||
{[testenv:build]commands}
|
||||
/bin/bash -c "ansible-galaxy collection install $(ls {toxinidir}/build_artifact/openstack-cloud-*) --force -p {toxinidir}"
|
||||
/bin/bash -c "cd ansible_collections/openstack/cloud && ansible-test sanity"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user