You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
917 B
40 lines
917 B
kind: pipeline |
|
type: docker |
|
name: default |
|
|
|
steps: |
|
# use the step name to mock out the gethostname() call in our tests |
|
- name: phosphoric-acid |
|
image: python:3.7-buster |
|
# unfortunately we have to do everything in one step because there's no |
|
# way to share system packages between steps |
|
commands: |
|
# install dependencies |
|
- apt update && apt install -y libkrb5-dev libpq-dev python3-dev libaugeas0 |
|
- python3 -m venv venv |
|
- . venv/bin/activate |
|
- pip install -r dev-requirements.txt |
|
- pip install -r requirements.txt |
|
|
|
# lint |
|
- flake8 |
|
|
|
# unit + integration tests |
|
- .drone/phosphoric-acid-setup.sh |
|
- pytest -v |
|
|
|
services: |
|
- name: auth1 |
|
image: debian:buster |
|
commands: |
|
- .drone/auth1-setup.sh |
|
- sleep infinity |
|
- name: coffee |
|
image: debian:buster |
|
commands: |
|
- .drone/coffee-setup.sh |
|
- sleep infinity |
|
|
|
trigger: |
|
branch: |
|
- master
|
|
|