1#!/usr/local/bin/bash
2
3set -o pipefail -eux
4
5declare -a args
6IFS='/:' read -ra args <<< "$1"
7
8cloud="${args[0]}"
9python="${args[1]}"
10group="${args[2]}"
11
12target="shippable/${cloud}/group${group}/"
13
14stage="${S:-prod}"
15
16# shellcheck disable=SC2086
17ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
18    --remote-terminate always --remote-stage "${stage}" \
19    --docker --python "${python}"
20