iac/.woodpecker.yml

16 lines
670 B
YAML
Raw Normal View History

2023-12-09 03:55:20 +05:30
steps:
backend:
2023-12-09 04:42:25 +05:30
image: python:3-bookworm
2023-12-09 03:55:20 +05:30
commands:
2023-12-09 04:42:25 +05:30
- whoami
2023-12-09 03:55:20 +05:30
- apt-get update
2023-12-09 04:42:25 +05:30
- apt upgrade -y
2023-12-11 14:38:03 +05:30
- apt-get install -y ca-certificates curl gnupg tar wget libssl-dev python3-pip cython3 pipx
2023-12-09 03:55:20 +05:30
- pipx install --include-deps ansible
- pipx ensurepath && echo $SHELL
2023-12-09 04:25:38 +05:30
- /root/.local/bin/ansible-galaxy install -r ./ansible/requirements.yml
2023-12-09 04:42:25 +05:30
- /root/.local/bin/ansible-playbook --become --connection=local -i localhost, --limit 127.0.0.1 ./ansible/mcaptcha.yml
2023-12-09 04:12:23 +05:30
- pipx install --include-deps pytest-testinfra
2023-12-09 03:55:20 +05:30
- cd tests/cache/ && py.test --verbose base.py
- cd tests/mcaptcha/ && py.test --verbose base.py