mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-27 05:43:02 +00:00
* Rename from community.kubernetes to kubernetes.core This goes through and renames community.kubernetes to kubernetes.core. Most of this was generated from the downstream build script that was used on the community repository, plus whatever hand edits I could find that were needed. The downstream build and test process has also been removed as this repository is now the downstream repository. * Fix CONTRIBUTING.md
32 lines
938 B
Makefile
32 lines
938 B
Makefile
# Also needs to be updated in galaxy.yml
|
|
VERSION = 1.2.0
|
|
|
|
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 kubernetes-core-${VERSION}.tar.gz
|
|
rm -rf ansible_collections
|
|
rm -rf tests/output
|
|
|
|
build: clean
|
|
ansible-galaxy collection build
|
|
|
|
release: build
|
|
ansible-galaxy collection publish kubernetes-core-${VERSION}.tar.gz
|
|
|
|
install: build
|
|
ansible-galaxy collection install -p ansible_collections kubernetes-core-${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)
|