Debian Codegraph @

.azure-pipelines/commands/sanity.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 set -o pipefail -eux
4
5 declare -a args
6 IFS='/:' read -ra args <<< "$1"
7
8 group="${args[1]}"
9
10 group2_include=(
11 ansible-doc
12 changelog
13 package-data
14 pep8
15 pylint
16 validate-modules
17 )
18
19 group1_exclude=(
20 "${group2_include[@]}"
21 )
22
23 options=()
24
25 case "${group}" in
26 1)
27 for name in "${group1_exclude[@]}"; do
28 options+=(--skip-test "${name}")
29 done
30 ;;
31 2)
32 for name in "${group2_include[@]}"; do
33 options+=(--test "${name}")
34 done
35 ;;
36 esac
37
38 # shellcheck disable=SC2086
39 ansible-test sanity --color -v --junit ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
40 --docker \
41 "${options[@]}" --allow-disabled