Debian Codegraph @

ansible_collections/community/okd/Makefile

raw
1 .PHONY: molecule
2
3 # Also needs to be updated in galaxy.yml
4 VERSION = 5.0.0
5
6 SANITY_TEST_ARGS ?= --docker --color
7 UNITS_TEST_ARGS ?= --docker --color
8 PYTHON_VERSION ?= `python3 -c 'import platform; print("{0}.{1}".format(platform.python_version_tuple()[0], platform.python_version_tuple()[1]))'`
9
10 clean:
11 rm -f community-okd-$(VERSION).tar.gz
12 rm -f redhat-openshift-$(VERSION).tar.gz
13 rm -rf ansible_collections
14
15 build: clean
16 ansible-galaxy collection build
17
18 install: build
19 ansible-galaxy collection install --force -p ansible_collections community-okd-$(VERSION).tar.gz
20
21 sanity: install
22 cd ansible_collections/community/okd && ansible-test sanity -v --python $(PYTHON_VERSION) $(SANITY_TEST_ARGS)
23
24 units: install
25 cd ansible_collections/community/okd && ansible-test units -v --python $(PYTHON_VERSION) $(UNITS_TEST_ARGS)
26
27 molecule: install
28 molecule test
29
30 test-integration: upstream-test-integration downstream-test-integration
31
32 test-sanity: upstream-test-sanity downstream-test-sanity
33
34 test-units: upstream-test-units downstream-test-units
35
36 test-integration-incluster:
37 ./ci/incluster_integration.sh
38
39 upstream-test-sanity: sanity
40
41 upstream-test-units: units
42
43 upstream-test-integration: molecule
44
45 downstream-test-sanity:
46 ./ci/downstream.sh -s
47
48 downstream-test-units:
49 ./ci/downstream.sh -u
50
51 downstream-test-integration:
52 ./ci/downstream.sh -i
53
54 downstream-build:
55 ./ci/downstream.sh -b