Skip to content

Commit

Permalink
chore: add dev target helper (ansible-collections#457)
Browse files Browse the repository at this point in the history
##### 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
```
  • Loading branch information
jooola authored Feb 6, 2024
1 parent 4db57dc commit cf52215
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/cloud-config-hcloud.ini.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default]
hcloud_api_token=$HCLOUD_TOKEN

0 comments on commit cf52215

Please sign in to comment.