1#!/usr/local/bin/bash
2
3set -o pipefail -eux
4
5declare -a args
6IFS='/:' read -ra args <<< "$1"
7
8image="${args[1]}"
9
10if [ "${#args[@]}" -gt 2 ]; then
11    target="shippable/posix/group${args[2]}/"
12else
13    target="shippable/posix/"
14fi
15
16# shellcheck disable=SC2086
17ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
18    --docker "${image}"
19