From cf522158640b416e01695bb7687df7d663c8661d Mon Sep 17 00:00:00 2001 From: Jonas L Date: Tue, 6 Feb 2024 14:04:18 +0100 Subject: [PATCH] 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 ``` --- Makefile | 8 +++++--- tests/integration/cloud-config-hcloud.ini.in | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 tests/integration/cloud-config-hcloud.ini.in diff --git a/Makefile b/Makefile index 48c411d..12a2521 100644 --- a/Makefile +++ b/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 \ diff --git a/tests/integration/cloud-config-hcloud.ini.in b/tests/integration/cloud-config-hcloud.ini.in new file mode 100644 index 0000000..06cd2c4 --- /dev/null +++ b/tests/integration/cloud-config-hcloud.ini.in @@ -0,0 +1,2 @@ +[default] +hcloud_api_token=$HCLOUD_TOKEN