1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00
This commit is contained in:
Lukas Kämmerling 2020-04-15 14:20:46 +02:00
parent 7ad84828b3
commit 2b6b15fa78
2 changed files with 10 additions and 2 deletions

View file

@ -1,9 +1,17 @@
stages:
- test
variables:
DOCKER_HOST: tcp://localhost:2375/
DOCKER_DRIVER: overlay2
test:
stage: test
image: python:3.8-buster
image: docker:stable-dind
services:
- docker:dind
before_script:
- docker version
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
except:
- tags
script:

View file

@ -12,4 +12,4 @@ hcloud_api_token=${HCLOUD_TOKEN}
" >> $(pwd)/tests/integration/cloud-config-hcloud.ini
# shellcheck disable=SC2086
export HOSTNAME="gitlab-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)"
ansible-test integration --color --local -v "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"}
ansible-test integration --color --docker --python "${python}" -v "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"}