Debian Codegraph @

.azure-pipelines/commands/fedora.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 platform="${args[0]}"
9 version="${args[1]}"
10 pyver=default
11
12 # check for explicit python version like [email protected]
13 declare -a splitversion
14 IFS='@' read -ra splitversion <<< "$version"
15
16 if [ "${#splitversion[@]}" -gt 1 ]; then
17 version="${splitversion[0]}"
18 pyver="${splitversion[1]}"
19 fi
20
21 if [ "${#args[@]}" -gt 3 ]; then
22 target="shippable/${args[3]}/${args[2]}/"
23 elif [ "${#args[@]}" -gt 2 ]; then
24 target="shippable/posix/group${args[2]}/"
25 else
26 target="shippable/posix/"
27 fi
28
29 stage="${S:-prod}"
30 provider="${P:-default}"
31
32 # shellcheck disable=SC2086
33 ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
34 --python "${pyver}" --remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}" \