2019-02-18 13:41:45 -08:00
|
|
|
#!/usr/bin/env bash
|
2017-07-07 16:52:40 -07:00
|
|
|
|
2019-02-18 13:41:45 -08:00
|
|
|
set -o pipefail -eux
|
2017-07-07 16:52:40 -07:00
|
|
|
|
|
|
|
declare -a args
|
2017-10-03 12:43:46 -07:00
|
|
|
IFS='/:' read -ra args <<< "$1"
|
2017-07-07 16:52:40 -07:00
|
|
|
|
|
|
|
platform="${args[0]}"
|
|
|
|
version="${args[1]}"
|
2017-10-03 14:37:05 -07:00
|
|
|
|
|
|
|
if [ "${#args[@]}" -gt 2 ]; then
|
2018-07-23 20:46:22 -07:00
|
|
|
target="shippable/posix/group${args[2]}/"
|
2017-10-03 14:37:05 -07:00
|
|
|
else
|
2018-07-23 20:46:22 -07:00
|
|
|
target="shippable/posix/"
|
2017-10-03 14:37:05 -07:00
|
|
|
fi
|
2017-07-07 16:52:40 -07:00
|
|
|
|
2017-11-29 00:46:08 -08:00
|
|
|
stage="${S:-prod}"
|
|
|
|
provider="${P:-default}"
|
|
|
|
|
2017-07-07 16:52:40 -07:00
|
|
|
# shellcheck disable=SC2086
|
2018-04-12 16:15:28 -07:00
|
|
|
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
|
2017-11-29 00:46:08 -08:00
|
|
|
--remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
|