summaryrefslogtreecommitdiffstats
path: root/ansible_collections/hetzner/hcloud/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/hetzner/hcloud/Makefile')
-rw-r--r--ansible_collections/hetzner/hcloud/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/ansible_collections/hetzner/hcloud/Makefile b/ansible_collections/hetzner/hcloud/Makefile
new file mode 100644
index 000000000..48c411d64
--- /dev/null
+++ b/ansible_collections/hetzner/hcloud/Makefile
@@ -0,0 +1,42 @@
+SHELL := bash
+.PHONY: vendor clean
+
+vendor:
+ python3 scripts/vendor.py
+
+vendor-check:
+ python3 scripts/vendor.py --check
+
+venv:
+ python3 -m venv venv
+ venv/bin/pip install -r requirements.txt
+
+lint: venv
+ venv/bin/pylint plugins
+
+lint-docs: venv
+ venv/bin/antsibull-docs lint-collection-docs \
+ --plugin-docs \
+ --validate-collection-refs self \
+ .
+
+clean:
+ git clean -xdf \
+ -e tests/integration/cloud-config-hcloud.ini
+
+sanity:
+ ansible-test sanity --color --truncate 0 -v \
+ --exclude plugins/module_utils/vendor/ \
+ --exclude scripts/ \
+ --exclude tests/utils/ \
+ --docker default \
+ --allow-disabled
+
+units:
+ ansible-test units --color --truncate 0 -v \
+ --docker default
+
+integration:
+ ansible-test integration --color --truncate 0 -v \
+ --docker default \
+ --allow-disabled