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:
parent
363598811e
commit
a2d00f8d7a
6 changed files with 207 additions and 0 deletions
15
tests/utils/gitlab/integration.sh
Executable file
15
tests/utils/gitlab/integration.sh
Executable 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"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue