2020-05-06 05:44:05 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
target="$1"
|
|
|
|
|
|
|
|
HCLOUD_TOKEN=$(cat hcloud_token.txt)
|
2021-02-22 21:25:44 +00:00
|
|
|
# shellcheck disable=SC2034,SC2154
|
2020-05-06 05:44:05 +00:00
|
|
|
changed_all_target="shippable/${cloud}/smoketest/"
|
|
|
|
|
2021-02-22 21:25:44 +00:00
|
|
|
# shellcheck disable=SC2046
|
2020-05-06 05:44:05 +00:00
|
|
|
echo "[default]
|
|
|
|
hcloud_api_token=${HCLOUD_TOKEN}
|
|
|
|
" >> $(pwd)/tests/integration/cloud-config-hcloud.ini
|
|
|
|
export SHIPPABLE="true"
|
2021-02-22 21:25:44 +00:00
|
|
|
|
|
|
|
# shellcheck disable=SC2155
|
2020-05-06 05:44:05 +00:00
|
|
|
export SHIPPABLE_BUILD_NUMBER="gl-$(cat prefix.txt)"
|
2021-02-22 21:25:44 +00:00
|
|
|
|
|
|
|
# shellcheck disable=SC2155,SC2002
|
2020-05-06 05:44:05 +00:00
|
|
|
export SHIPPABLE_JOB_NUMBER="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 2 | head -n 1)"
|
2020-06-30 11:48:24 +00:00
|
|
|
ansible-test integration --color --local -vv "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"}
|