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