41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
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.9-slim-bullseye
|
|
# 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 --no-install-recommends -y gcc libkrb5-dev libaugeas0
|
|
- python3 -m venv venv
|
|
- . venv/bin/activate
|
|
- venv/bin/pip install -r dev-requirements.txt -r requirements.txt
|
|
|
|
# lint
|
|
- flake8
|
|
|
|
# unit + integration tests
|
|
- bash -c ". .drone/phosphoric-acid-setup.sh && IMAGE__setup && CONTAINER__setup"
|
|
- pytest -v
|
|
|
|
services:
|
|
- name: auth1
|
|
image: debian:bullseye-slim
|
|
commands:
|
|
- bash -c ". .drone/auth1-setup.sh && IMAGE__setup && CONTAINER__setup"
|
|
- sleep infinity
|
|
- name: coffee
|
|
image: debian:bullseye-slim
|
|
commands:
|
|
- bash -c ". .drone/coffee-setup.sh && IMAGE__setup && CONTAINER__setup"
|
|
- sleep infinity
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|