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

Add Gitlab-CI (#3)

This commit is contained in:
Lukas Kämmerling 2020-05-06 07:44:05 +02:00 committed by GitHub
parent 363598811e
commit a2d00f8d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 207 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
target="$1"
HCLOUD_TOKEN=$(cat hcloud_token.txt)
changed_all_target="shippable/${cloud}/smoketest/"
echo "[default]
hcloud_api_token=${HCLOUD_TOKEN}
" >> $(pwd)/tests/integration/cloud-config-hcloud.ini
# shellcheck disable=SC2086
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 "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"}