2019-02-18 22:41:45 +01:00
|
|
|
#!/usr/bin/env bash
|
2016-11-30 06:21:53 +01:00
|
|
|
|
2019-02-18 22:41:45 +01:00
|
|
|
set -o pipefail -eux
|
2016-11-30 06:21:53 +01:00
|
|
|
|
2017-02-25 01:58:56 +01:00
|
|
|
declare -a args
|
2017-10-03 21:43:46 +02:00
|
|
|
IFS='/:' read -ra args <<< "$1"
|
2017-01-10 19:30:41 +01:00
|
|
|
|
2017-02-25 01:58:56 +01:00
|
|
|
version="${args[1]}"
|
2017-01-10 19:30:41 +01:00
|
|
|
|
2019-03-11 23:13:09 +01:00
|
|
|
if [[ "${COVERAGE:-}" == "--coverage" ]]; then
|
2019-03-05 20:58:13 +01:00
|
|
|
timeout=90
|
|
|
|
else
|
2019-03-21 17:18:12 +01:00
|
|
|
timeout=11
|
2019-03-05 20:58:13 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
ansible-test env --timeout "${timeout}" --color -v
|
|
|
|
|
2017-05-14 09:04:52 +02:00
|
|
|
# shellcheck disable=SC2086
|
2018-01-23 19:00:55 +01:00
|
|
|
ansible-test units --color -v --docker default --python "${version}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
|