Created
April 24, 2022 18:31
-
-
Save jtprogru/0f8dd95c83068973c6411874732e7fa5 to your computer and use it in GitHub Desktop.
Makefile for Ansible Galaxy collection (from kubernetes.core collection)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Also needs to be updated in galaxy.yml | |
VERSION = 2.0.1 | |
TEST_ARGS ?= "" | |
PYTHON_VERSION ?= `python -c 'import platform; print("{0}.{1}".format(platform.python_version_tuple()[0], platform.python_version_tuple()[1]))'` | |
clean: | |
rm -f community-kubernetes-${VERSION}.tar.gz | |
rm -rf ansible_collections | |
rm -rf tests/output | |
build: clean | |
ansible-galaxy collection build | |
release: build | |
ansible-galaxy collection publish community-kubernetes-${VERSION}.tar.gz | |
install: build | |
ansible-galaxy collection install -p ansible_collections community-kubernetes-${VERSION}.tar.gz | |
test-sanity: | |
ansible-test sanity --docker -v --color --python $(PYTHON_VERSION) $(?TEST_ARGS) | |
test-integration: | |
ansible-test integration --docker -v --color --retry-on-error --python $(PYTHON_VERSION) --continue-on-error --diff --coverage $(?TEST_ARGS) | |
test-molecule: | |
molecule test | |
test-unit: | |
ansible-test units --docker -v --color --python $(PYTHON_VERSION) $(?TEST_ARGS) | |
downstream-test-sanity: | |
./utils/downstream.sh -s | |
downstream-test-integration: | |
./utils/downstream.sh -i | |
downstream-test-molecule: | |
./utils/downstream.sh -m | |
downstream-build: | |
./utils/downstream.sh -b | |
downstream-release: | |
./utils/downstream.sh -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment