1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

Fix tests

Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
This commit is contained in:
Lukas Kämmerling 2020-07-31 07:22:31 +02:00
parent f545197667
commit 744297494d
3 changed files with 10 additions and 11 deletions

View file

@ -22,7 +22,6 @@ matrix:
- env: T=2.10/sanity/2
- env: T=2.10/sanity/3
- env: T=2.10/sanity/4
- env: T=2.10/sanity/extra
- env: T=2.10/hcloud/3.8/1
- env: T=2.10/hcloud/3.8/2

View file

@ -41,4 +41,4 @@ fi
ansible-test sanity --color -v --junit ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
--docker --base-branch "${base_branch}" \
--exclude shippable.yml --exclude tests/utils/ \
"${options[@]}" --allow-disabled --python 3.8
"${options[@]}" --allow-disabled

View file

@ -30,8 +30,8 @@ if [ -d /home/shippable/cache/ ]; then
ls -la /home/shippable/cache/
fi
command -v python3
python3 -V
command -v python
python -V
function retry
{
@ -49,13 +49,13 @@ function retry
exit -1
}
command -v python3 -m pip
python3 -m pip --version
python3 -m pip list --disable-pip-version-check
command -v pip
pip --version
pip list --disable-pip-version-check
if [ "${ansible_version}" == "devel" ]; then
retry python3 -m pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
retry pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
else
retry python3 -m pip install "https://github.com/ansible/ansible/archive/stable-${ansible_version}.tar.gz" --disable-pip-version-check
retry pip install "https://github.com/ansible/ansible/archive/stable-${ansible_version}.tar.gz" --disable-pip-version-check
fi
export ANSIBLE_COLLECTIONS_PATHS="${HOME}/.ansible"
SHIPPABLE_RESULT_DIR="$(pwd)/shippable"
@ -68,8 +68,8 @@ cd "${TEST_DIR}"
retry ansible-galaxy -vvv collection install community.general
retry ansible-galaxy -vvv collection install ansible.netcommon
retry python3 -m pip install hcloud
retry python3 -m pip install netaddr --disable-pip-version-check
retry pip install hcloud
retry pip install netaddr --disable-pip-version-check
retry ansible-galaxy -vvv collection install community.internal_test_tools
# END: HACK