Add shippable tests. (#4)

This commit is contained in:
Felix Fontein
2020-03-24 20:03:33 +01:00
parent 70615300fb
commit e91849d1d8
37 changed files with 553 additions and 63 deletions

20
tests/utils/shippable/units.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -o pipefail -eux
declare -a args
IFS='/:' read -ra args <<< "$1"
version="${args[1]}"
group="${args[2]}"
if [[ "${COVERAGE:-}" == "--coverage" ]]; then
timeout=90
else
timeout=30
fi
ansible-test env --timeout "${timeout}" --color -v
# shellcheck disable=SC2086
ansible-test units --color -v --docker default --python "${version}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \