drone-ci testing
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Andrei Stoica 2023-05-15 23:01:21 -04:00
parent 44afed516c
commit 95df62b5fb
1 changed files with 8 additions and 1 deletions

View File

@ -22,6 +22,9 @@ steps:
- name: requirements
image: python:3.10-alpine
volumes:
- name: venv
path: /drone/src/.venv
commands:
- python -m venv .venv
- . .venv/bin/activate
@ -37,10 +40,12 @@ steps:
from_secret: TESTING_PASSWORD
POSTGRES_DB:
from_secret: TESTING_DB
volumes:
- name: venv
path: /drone/src/.venv
commands:
- hostip=$(ip route show | awk '/default/ {print $3}')
- export POSTGRES_URL=$hostip
- pwd
- pytest
- name: db-cleanup
image: docker/compose:alpine-1.29.2
@ -54,3 +59,5 @@ volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
- name: venv
temp: {}