mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 20:38:42 +00:00
Fix collection dependency installation in CI. (#239)
This commit is contained in:
parent
31fae211fe
commit
abd057f447
@ -78,7 +78,7 @@ if [ "${test}" == "sanity/extra" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# START: HACK
|
# START: HACK
|
||||||
if [ "${script}" != "sanity" ] || [ "${test}" == "sanity/extra" ]; then
|
if [ "${test}" == "sanity/extra" ]; then
|
||||||
# Nothing further should be added to this list.
|
# Nothing further should be added to this list.
|
||||||
# This is to prevent modules or plugins in this collection having a runtime dependency on other collections.
|
# This is to prevent modules or plugins in this collection having a runtime dependency on other collections.
|
||||||
retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/internal_test_tools"
|
retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/internal_test_tools"
|
||||||
@ -86,7 +86,7 @@ if [ "${script}" != "sanity" ] || [ "${test}" == "sanity/extra" ]; then
|
|||||||
# retry ansible-galaxy -vvv collection install community.internal_test_tools
|
# retry ansible-galaxy -vvv collection install community.internal_test_tools
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${script}" != "sanity" ] && [ "${script}" != "units" ]; then
|
if [ "${script}" != "sanity" ] && [ "${script}" != "units" ] && [ "${test}" != "sanity/extra" ]; then
|
||||||
# To prevent Python dependencies on other collections only install other collections for integration tests
|
# To prevent Python dependencies on other collections only install other collections for integration tests
|
||||||
retry git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.posix.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/ansible/posix"
|
retry git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.posix.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/ansible/posix"
|
||||||
retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.crypto.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/crypto"
|
retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.crypto.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/crypto"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user