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