-
Notifications
You must be signed in to change notification settings - Fork 1
/
buddy.yml
50 lines (50 loc) · 1.44 KB
/
buddy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- pipeline: "Build and Test"
trigger_mode: "ON_EVERY_PUSH"
ref_name: "master"
ref_type: "BRANCH"
trigger_condition: "ALWAYS"
actions:
- action: "Execute: pytest"
type: "BUILD"
working_directory: "/buddy/unmarc-backend"
docker_image_name: "library/python"
docker_image_tag: "3.7.4-alpine"
execute_commands:
- "pip install -r requirements/local.txt"
- "pytest"
setup_commands:
- "apk update \\"
- " # psycopg2 dependencies"
- " && apk add --virtual build-deps gcc python3-dev musl-dev \\"
- " && apk add postgresql-dev \\"
- " # Pillow dependencies"
- " && apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev \\"
- " # CFFI dependencies"
- " && apk add libffi-dev py-cffi \\"
- " && apk add bash"
services:
- type: "POSTGRE_SQL"
version: "11.5"
connection:
host: "postgres"
port: 5432
user: "unmarc"
db: "unmarc"
cached_dirs:
- "/root/.cache/pip"
mount_filesystem_path: "/buddy/unmarc-backend"
shell: "BASH"
trigger_condition: "ALWAYS"
variables:
- id: 211443
key: "DATABASE_URL"
value: "postgresql://unmarc:@postgres/unmarc"
description: ""
- id: 211444
key: "DJANGO_SETTINGS_MODULE"
value: "unmarc.settings.test"
description: ""
- id: 213250
key: "PYTHONPATH"
value: "$PYTHONPATH:./unmarc"
description: ""