Debian Codegraph @

.azure-pipelines/commands/generic.sh

raw
1 #!/usr/bin/env bash
2
3 set -o pipefail -eux
4
5 declare -a args
6 IFS='/:' read -ra args <<< "$1"
7
8 python="${args[1]}"
9
10 if [ "${#args[@]}" -gt 2 ]; then
11 target="shippable/generic/group${args[2]}/"
12 else
13 target="shippable/generic/"
14 fi
15
16 stage="${S:-prod}"
17
18 # shellcheck disable=SC2086
19 ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
20 --remote-terminate always --remote-stage "${stage}" \
21 --docker default --python "${python}"