Enable unit tests in the CI (#127)

Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
This commit is contained in:
Alina Buzachis
2021-11-11 11:41:41 +01:00
committed by GitHub
parent d154967c88
commit 1487d79ac4
2 changed files with 34 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
VERSION = 2.1.0
SANITY_TEST_ARGS ?= --docker --color
UNITS_TEST_ARGS ?= --docker --color
PYTHON_VERSION ?= `python3 -c 'import platform; print("{0}.{1}".format(platform.python_version_tuple()[0], platform.python_version_tuple()[1]))'`
clean:
@@ -20,6 +21,9 @@ install: build
sanity: install
cd ansible_collections/community/okd && ansible-test sanity -v --python $(PYTHON_VERSION) $(SANITY_TEST_ARGS)
units: install
cd ansible_collections/community/okd && ansible-test units -v --python $(PYTHON_VERSION) $(UNITS_TEST_ARGS)
molecule: install
molecule test
@@ -27,16 +31,23 @@ test-integration: upstream-test-integration downstream-test-integration
test-sanity: upstream-test-sanity downstream-test-sanity
test-units: upstream-test-units downstream-test-units
test-integration-incluster:
./ci/incluster_integration.sh
upstream-test-sanity: sanity
upstream-test-units: units
upstream-test-integration: molecule
downstream-test-sanity:
./ci/downstream.sh -s
downstream-test-units:
./ci/downstream.sh -u
downstream-test-integration:
./ci/downstream.sh -i