Add requirements

This commit is contained in:
2024-01-06 23:46:51 +13:00
parent 06047a8245
commit fac9fb9fd1
2 changed files with 9 additions and 2 deletions

View File

@@ -4,15 +4,16 @@ clean:
find . -name '*.py[co]' -delete
virtualenv:
virtualenv --prompt '|> ansible-role-common <| ' .venv
virtualenv --prompt '|> {{ cookiecutter.role_title | lower | replace(' ','_') }} <| ' .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -r requirements.txt
.venv/bin/ansible-galaxy collection install -r requirements.yml
@echo
@echo "VirtualENV Setup Complete. Now run: source .venv/bin/activate"
@echo
source .venv/bin/activate
test:
test: virtualenv
for distro in almalinux9 ; do \
MOLECULE_DISTRO=$$distro molecule test --all ; \
done