Dockerfile now is properly set up to run tests in a rootless container (#11)

* Dockerfile now is properly set up to run tests in a rootless container

* Keep docker as default
This commit is contained in:
Fabian von Feilitzsch
2020-08-18 12:33:15 -04:00
committed by GitHub
parent ee21083985
commit 73522d3b53
2 changed files with 29 additions and 7 deletions

View File

@@ -1,18 +1,21 @@
# Also needs to be updated in galaxy.yml
VERSION = 0.1.0
# To run sanity tests in a venv, set SANITY_TEST_ARGS to '--venv'
SANITY_TEST_ARGS ?= '--docker'
clean:
rm -f community-okd-${VERSION}.tar.gz
rm -f community-okd-$(VERSION).tar.gz
rm -rf ansible_collections
build: clean
ansible-galaxy collection build
install: build
ansible-galaxy collection install -p ansible_collections community-okd-${VERSION}.tar.gz
ansible-galaxy collection install -p ansible_collections community-okd-$(VERSION).tar.gz
test-sanity: install
cd ansible_collections/community/okd && ansible-test sanity -v --docker --color $(TEST_ARGS)
cd ansible_collections/community/okd && ansible-test sanity -v --color $(SANITY_TEST_ARGS)
test-integration: install
molecule test