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

Split integrations tests into the same groups as on shippable

This commit is contained in:
Lukas Kämmerling 2020-04-16 07:01:28 +02:00
parent cad10ed5fc
commit 366531dff9
3 changed files with 7 additions and 6 deletions

View file

@ -57,13 +57,12 @@ test:integration-devel-py38:
test:integration-devel-py39:
stage: integration
image: python:3.9-rc-buster
allow_failure: true
image: python:3.8-rc-buster
except:
- tags
script:
- echo "$HCLOUD_TOKEN" >> "$(pwd)/hcloud_token.txt"
- echo "py39-$CI_JOB_ID" >> "$(pwd)/prefix.txt"
- bash tests/utils/gitlab/gitlab.sh integration/1
- bash tests/utils/gitlab/gitlab.sh integration/2
tags:
- hc-bladerunner

View file

@ -72,9 +72,9 @@ find plugins -type d -empty -print -delete
ansible-test env --dump --show --timeout "50" --color -v
group="${args[1]}"
if [[ "${test}" =~ integration ]]; then
bash tests/utils/gitlab/integration.sh
bash tests/utils/gitlab/integration.sh "shippable/hcloud/group${group}"
else
group="${args[1]}"
bash tests/utils/gitlab/sanity.sh "sanity/${group}"
fi

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash
target="$1"
HCLOUD_TOKEN=$(cat hcloud_token.txt)
changed_all_target="shippable/${cloud}/smoketest/"
@ -10,4 +12,4 @@ hcloud_api_token=${HCLOUD_TOKEN}
export SHIPPABLE="true"
export SHIPPABLE_BUILD_NUMBER="gl-$(cat prefix.txt)"
export SHIPPABLE_JOB_NUMBER="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 2 | head -n 1)"
ansible-test integration --color --local -v "cloud/hcloud/" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"}
ansible-test integration --color --local -v "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"}