pyceo/.drone.yml

33 lines
827 B
YAML
Raw Normal View History

2021-08-19 22:24:55 -04:00
kind: pipeline
type: docker
2021-08-21 02:27:33 -04:00
name: default
2021-08-19 22:24:55 -04:00
steps:
2021-08-21 02:27:33 -04:00
# use the step name to mock out the gethostname() call in our tests
- name: phosphoric-acid
2021-08-19 22:24:55 -04:00
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:
2021-08-21 02:27:33 -04:00
# install dependencies
2021-08-19 22:24:55 -04:00
- apt update && apt install -y libkrb5-dev libsasl2-dev python3-dev
- python3 -m venv venv
- . venv/bin/activate
- pip install -r dev-requirements.txt
2021-08-21 02:27:33 -04:00
- pip install -r requirements.txt
2021-08-19 22:24:55 -04:00
- cd ceo_common/krb5 && python krb5_build.py && cd ../..
2021-08-20 14:17:00 -04:00
2021-08-19 22:24:55 -04:00
# lint
- flake8
2021-08-20 14:17:00 -04:00
# unit + integration tests
- .drone/phosphoric-acid-setup.sh
- pytest -v
services:
- name: auth1
image: debian:buster
commands:
- .drone/auth1-setup.sh
2021-08-20 14:39:31 -04:00
- sleep infinity