mirror of
https://github.com/zebrajr/ansible.git
synced 2026-01-15 12:15:19 +00:00
* Remove docs dir * Updates to reflect docs removal * Fix integration test * Remove examples dir * Updates to reflect examples removal * Remove build_library and build-ansible.py * Remove refs to build_library and build-ansible.py * Remove obsolete template * Remove obsolete template reference * Remove the now obsolete rstcheck sanity test
42 lines
714 B
Bash
Executable File
42 lines
714 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o pipefail -eux
|
|
|
|
declare -a args
|
|
IFS='/:' read -ra args <<< "$1"
|
|
|
|
group="${args[1]}"
|
|
|
|
group2_include=(
|
|
ansible-doc
|
|
changelog
|
|
package-data
|
|
pep8
|
|
pylint
|
|
validate-modules
|
|
)
|
|
|
|
group1_exclude=(
|
|
"${group2_include[@]}"
|
|
)
|
|
|
|
options=()
|
|
|
|
case "${group}" in
|
|
1)
|
|
for name in "${group1_exclude[@]}"; do
|
|
options+=(--skip-test "${name}")
|
|
done
|
|
;;
|
|
2)
|
|
for name in "${group2_include[@]}"; do
|
|
options+=(--test "${name}")
|
|
done
|
|
;;
|
|
esac
|
|
|
|
# shellcheck disable=SC2086
|
|
ansible-test sanity --color -v --junit ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
|
|
--docker \
|
|
"${options[@]}" --allow-disabled
|