2020-05-29 06:31:59 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eux -o pipefail
|
|
|
|
|
|
|
|
cp -a "${TEST_DIR}/ansible_collections" "${WORK_DIR}"
|
|
|
|
cd "${WORK_DIR}/ansible_collections/ns/col"
|
|
|
|
|
|
|
|
# common args for all tests
|
|
|
|
# because we are running in shippable/generic/ we are already in the default docker container
|
2021-05-11 03:25:53 +02:00
|
|
|
common=(--python "${ANSIBLE_TEST_PYTHON_VERSION}" --venv --venv-system-site-packages --color --truncate 0 "${@}")
|
2020-05-29 06:31:59 +02:00
|
|
|
|
|
|
|
# prime the venv to work around issue with PyYAML detection in ansible-test
|
|
|
|
ansible-test sanity "${common[@]}" --test ignores
|
|
|
|
|
|
|
|
# tests
|
|
|
|
ansible-test sanity "${common[@]}"
|
|
|
|
ansible-test units "${common[@]}"
|
|
|
|
ansible-test integration "${common[@]}"
|