mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
chore: add dev target helper (#457)
##### SUMMARY Adds a helper to configure the dev env. For example reexporting a hcloud_token and reload the integration tests configuration: ```bash export HCLOUD_TOKEN="$(get-tmp-hcloud-token)" make dev ```
This commit is contained in:
parent
4db57dcf22
commit
cf52215864
2 changed files with 7 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -1,5 +1,8 @@
|
||||||
SHELL := bash
|
SHELL := bash
|
||||||
.PHONY: vendor clean
|
.PHONY: vendor clean dev
|
||||||
|
|
||||||
|
dev:
|
||||||
|
cat tests/integration/cloud-config-hcloud.ini.in | envsubst > tests/integration/cloud-config-hcloud.ini
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
python3 scripts/vendor.py
|
python3 scripts/vendor.py
|
||||||
|
@ -21,8 +24,7 @@ lint-docs: venv
|
||||||
.
|
.
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
git clean -xdf \
|
git clean -xdf
|
||||||
-e tests/integration/cloud-config-hcloud.ini
|
|
||||||
|
|
||||||
sanity:
|
sanity:
|
||||||
ansible-test sanity --color --truncate 0 -v \
|
ansible-test sanity --color --truncate 0 -v \
|
||||||
|
|
2
tests/integration/cloud-config-hcloud.ini.in
Normal file
2
tests/integration/cloud-config-hcloud.ini.in
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[default]
|
||||||
|
hcloud_api_token=$HCLOUD_TOKEN
|
Loading…
Reference in a new issue