mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-12-04 01:29:09 +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
|
||||
.PHONY: vendor clean
|
||||
.PHONY: vendor clean dev
|
||||
|
||||
dev:
|
||||
cat tests/integration/cloud-config-hcloud.ini.in | envsubst > tests/integration/cloud-config-hcloud.ini
|
||||
|
||||
vendor:
|
||||
python3 scripts/vendor.py
|
||||
|
@ -21,8 +24,7 @@ lint-docs: venv
|
|||
.
|
||||
|
||||
clean:
|
||||
git clean -xdf \
|
||||
-e tests/integration/cloud-config-hcloud.ini
|
||||
git clean -xdf
|
||||
|
||||
sanity:
|
||||
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