2017-05-03 08:24:05 +08:00
|
|
|
#!/bin/bash -eux
|
|
|
|
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
declare -a args
|
2017-10-03 12:43:46 -07:00
|
|
|
IFS='/:' read -ra args <<< "$1"
|
2017-05-03 08:24:05 +08:00
|
|
|
|
2017-10-03 14:37:05 -07:00
|
|
|
image="${args[1]}"
|
2017-10-26 00:21:46 -07:00
|
|
|
python="${args[2]}"
|
|
|
|
target="posix/ci/cloud/group${args[3]}/"
|
2017-05-03 08:24:05 +08:00
|
|
|
|
2018-03-09 16:17:29 -08:00
|
|
|
stage="${S:-prod}"
|
|
|
|
|
2017-05-14 01:08:42 +08: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"} \
|
2018-03-09 16:17:29 -08:00
|
|
|
--remote-terminate always --remote-stage "${stage}" \
|
2017-10-26 00:21:46 -07:00
|
|
|
--docker "${image}" --python "${python}" --changed-all-target "${target}smoketest/"
|