2020-04-14 06:34:22 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -o pipefail -eux
|
|
|
|
|
|
|
|
declare -a args
|
|
|
|
IFS='/:' read -ra args <<< "$1"
|
|
|
|
|
|
|
|
group="${args[1]}"
|
|
|
|
|
|
|
|
if [ "${BASE_BRANCH:-}" ]; then
|
|
|
|
base_branch="origin/${BASE_BRANCH}"
|
|
|
|
else
|
|
|
|
base_branch=""
|
|
|
|
fi
|
|
|
|
|
2020-06-29 11:53:01 +00:00
|
|
|
if [ "${group}" == "extra" ]; then
|
2021-02-03 11:40:48 +00:00
|
|
|
# ansible-galaxy -vvv collection install community.internal_test_tools
|
|
|
|
git clone --single-branch --depth 1 https://github.com/ansible-collections/community.internal_test_tools.git ../../community/internal_test_tools
|
2020-04-14 06:34:22 +00:00
|
|
|
|
2021-02-03 11:40:48 +00:00
|
|
|
../internal_test_tools/tools/run.py --color
|
|
|
|
exit
|
2020-04-14 06:34:22 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# shellcheck disable=SC2086
|
|
|
|
ansible-test sanity --color -v --junit ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
|
|
|
|
--docker --base-branch "${base_branch}" \
|
2021-02-03 11:40:48 +00:00
|
|
|
--allow-disabled
|