Make extra sanity test runner produce ansibullbot and JUnit output. (#250)

pull/252/head
Felix Fontein 2021-06-14 07:39:52 +02:00 committed by GitHub
parent 4adad5d98a
commit 9d958033a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -14,10 +14,7 @@ else
fi fi
if [ "${group}" == "extra" ]; then if [ "${group}" == "extra" ]; then
# ansible-galaxy -vvv collection install community.internal_test_tools ../internal_test_tools/tools/run.py --color --bot --junit
git clone --single-branch --depth 1 https://github.com/ansible-collections/community.internal_test_tools.git ../internal_test_tools
../internal_test_tools/tools/run.py --color
exit exit
fi fi

View File

@ -84,7 +84,19 @@ else
export ANSIBLE_COLLECTIONS_PATHS="$PWD/../../../" export ANSIBLE_COLLECTIONS_PATHS="$PWD/../../../"
fi fi
if [ "${test}" == "sanity/extra" ]; then
retry pip install junit-xml --disable-pip-version-check
fi
# START: HACK install integration test dependencies # START: HACK install integration test dependencies
if [ "${test}" == "sanity/extra" ]; then
# 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.
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}" != "units" ] && [ "${script}" != "sanity" ] && [ "${ansible_version}" != "2.9" ]; then if [ "${script}" != "units" ] && [ "${script}" != "sanity" ] && [ "${ansible_version}" != "2.9" ]; then
retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.general.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/general" retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.general.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/general"
# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429) # NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429)