mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
##### SUMMARY Enable unit testing in the CI. We started to write some unit tests for the inventory, but they were not enforced in the CI.
17 lines
337 B
Bash
Executable file
17 lines
337 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -o pipefail -eux
|
|
|
|
declare -a args
|
|
IFS='/:' read -ra args <<< "$1"
|
|
|
|
python_version="${args[1]}"
|
|
|
|
ansible-test env --timeout 30 --color -v
|
|
|
|
# shellcheck disable=SC2086
|
|
ansible-test units --color -v \
|
|
--docker default \
|
|
--python "$python_version" \
|
|
${COVERAGE:+"$COVERAGE"} \
|
|
${CHANGED:+"$CHANGED"}
|