Colored Output
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
2023-10-08 22:03:52 +13:00
parent 0adb495154
commit 5ad8dde9aa
3 changed files with 8 additions and 5 deletions

View File

@@ -11,6 +11,8 @@ steps:
environment: environment:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks ANSIBLE_CALLBACK_WHITELIST: profile_tasks
EPEL_MIRROR_URL: https://mirrors.guise.net.nz/epel EPEL_MIRROR_URL: https://mirrors.guise.net.nz/epel
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
commands: commands:

View File

@@ -3,7 +3,7 @@
extends: default extends: default
ignore: | ignore: |
env/ .venv/
rules: rules:
braces: braces:
max-spaces-inside: 1 max-spaces-inside: 1

View File

@@ -4,11 +4,12 @@ clean:
find . -name '*.py[co]' -delete find . -name '*.py[co]' -delete
virtualenv: virtualenv:
virtualenv --prompt '|> ansible-role-common <| ' env virtualenv --prompt '|> ansible-role-common <| ' .venv
env/bin/pip install -r requirements.txt .venv/bin/pip install --upgrade pip
env/bin/ansible-galaxy collection install -r requirements.yml .venv/bin/pip install -r requirements.txt
.venv/bin/ansible-galaxy collection install -r requirements.yml
@echo @echo
@echo "VirtualENV Setup Complete. Now run: source env/bin/activate" @echo "VirtualENV Setup Complete. Now run: source .venv/bin/activate"
@echo @echo
test: test: