mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +00:00
[PR #12303/69dd1edc backport][stable-12] CI: Don't install community.internal_test_tools for sanity tests (#12305)
CI: Don't install community.internal_test_tools for sanity tests (#12303)
Don't install community.internal_test_tools for sanity tests.
(cherry picked from commit 69dd1edc40)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
61f5bb93e6
commit
017f73e8b9
2 changed files with 7 additions and 7 deletions
|
|
@ -78,14 +78,16 @@ if [ "${script}" == "linux" ] && [ "$after_script" == "ubuntu2004" ]; then
|
|||
COMMUNITY_CRYPTO_BRANCH=stable-2
|
||||
fi
|
||||
|
||||
# Nothing further should be added to this list.
|
||||
# To prevent Python dependencies on other collections only install other collections for unit and integration tests
|
||||
# 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"
|
||||
# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429)
|
||||
# retry ansible-galaxy -vvv collection install community.internal_test_tools
|
||||
|
||||
if [ "${script}" != "sanity" ]; then
|
||||
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"
|
||||
# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429)
|
||||
# retry ansible-galaxy -vvv collection install community.internal_test_tools
|
||||
fi
|
||||
|
||||
if [ "${script}" != "sanity" ] && [ "${script}" != "units" ]; then
|
||||
# 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 --branch "${COMMUNITY_CRYPTO_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.docker.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/docker"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue