.PHONY: all clean default install update checks pc lint test

default: checks

install:
	pre-commit install
	poetry install --sync --no-root
	poetry run ansible-galaxy install -r requirements.yml

update:
	poetry up --latest

checks: pc

pc:
	pre-commit run -a

lint:
	poetry run ansible-lint

test-ci:
	poetry run pytest -rP --molecule roles -m docker -p no:warnings

test-docker:
	pushd roles/docker && poetry run molecule test -s docker_vagrant; popd

test-linger:
	pushd plugins && poetry run molecule test -s linger_vagrant; popd
