diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
commit | a453ac31f3428614cceb99027f8efbdb9258a40b (patch) | |
tree | f61f87408f32a8511cbd91799f9cececb53e0374 /collections-debian-merged/ansible_collections/community/okd/Makefile | |
parent | Initial commit. (diff) | |
download | ansible-a453ac31f3428614cceb99027f8efbdb9258a40b.tar.xz ansible-a453ac31f3428614cceb99027f8efbdb9258a40b.zip |
Adding upstream version 2.10.7+merged+base+2.10.8+dfsg.upstream/2.10.7+merged+base+2.10.8+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collections-debian-merged/ansible_collections/community/okd/Makefile')
-rw-r--r-- | collections-debian-merged/ansible_collections/community/okd/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/community/okd/Makefile b/collections-debian-merged/ansible_collections/community/okd/Makefile new file mode 100644 index 00000000..9c30f610 --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/okd/Makefile @@ -0,0 +1,43 @@ +# Also needs to be updated in galaxy.yml +VERSION = 1.0.0 + +# To run sanity tests in a venv, set SANITY_TEST_ARGS to '--venv' +SANITY_TEST_ARGS ?= --docker --color + +clean: + rm -f community-okd-$(VERSION).tar.gz + rm -rf ansible_collections + +build: clean + ansible-galaxy collection build + +install-kubernetes-src: + mkdir -p ansible_collections/community/kubernetes + rm -rf ansible_collections/community/kubernetes/* + curl -L https://github.com/ansible-collections/community.kubernetes/archive/main.tar.gz | tar -xz -C ansible_collections/community/kubernetes --strip-components 1 + +# TODO: Once we no longer rely on features in main we should drop the install-kubernetes-src dependency +install: build install-kubernetes-src + ansible-galaxy collection install -p ansible_collections community-okd-$(VERSION).tar.gz + +test-integration-incluster: + ./ci/incluster_integration.sh + +test-sanity: upstream-test-sanity downstream-test-sanity + +test-integration: upstream-test-integration downstream-test-integration + +upstream-test-integration: install + molecule test + +upstream-test-sanity: install + cd ansible_collections/community/okd && ansible-test sanity --exclude ci/ -v $(SANITY_TEST_ARGS) + +downstream-test-sanity: + ./ci/downstream.sh -s + +downstream-test-integration: + ./ci/downstream.sh -i + +downstream-build: + ./ci/downstream.sh -b |