Notfellchen/.woodpecker.yml

32 lines
583 B
YAML
Raw Normal View History

2024-10-03 09:03:28 +02:00
---
steps:
2025-01-19 07:04:22 +01:00
test:
image: python
commands:
- python -m pip install '.[develop]'
- coverage run --source='.' src/manage.py test src && coverage html
- coverage html
- cat htmlcov/index.html
2024-10-03 09:03:28 +02:00
build:
2024-10-04 09:20:34 +02:00
image: moanos/sphinx-rtd
2024-10-03 09:03:28 +02:00
commands:
- cd docs && make html
deploy:
image: appleboy/drone-scp
settings:
strip_components: 3
host:
from_secret: host
username:
from_secret: ssh_user
target:
from_secret: path
source: docs/_build/html/
key:
from_secret: ssh_key