drone-ci testing
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
44afed516c
commit
95df62b5fb
|
|
@ -22,6 +22,9 @@ steps:
|
||||||
|
|
||||||
- name: requirements
|
- name: requirements
|
||||||
image: python:3.10-alpine
|
image: python:3.10-alpine
|
||||||
|
volumes:
|
||||||
|
- name: venv
|
||||||
|
path: /drone/src/.venv
|
||||||
commands:
|
commands:
|
||||||
- python -m venv .venv
|
- python -m venv .venv
|
||||||
- . .venv/bin/activate
|
- . .venv/bin/activate
|
||||||
|
|
@ -37,10 +40,12 @@ steps:
|
||||||
from_secret: TESTING_PASSWORD
|
from_secret: TESTING_PASSWORD
|
||||||
POSTGRES_DB:
|
POSTGRES_DB:
|
||||||
from_secret: TESTING_DB
|
from_secret: TESTING_DB
|
||||||
|
volumes:
|
||||||
|
- name: venv
|
||||||
|
path: /drone/src/.venv
|
||||||
commands:
|
commands:
|
||||||
- hostip=$(ip route show | awk '/default/ {print $3}')
|
- hostip=$(ip route show | awk '/default/ {print $3}')
|
||||||
- export POSTGRES_URL=$hostip
|
- export POSTGRES_URL=$hostip
|
||||||
- pwd
|
|
||||||
- pytest
|
- pytest
|
||||||
- name: db-cleanup
|
- name: db-cleanup
|
||||||
image: docker/compose:alpine-1.29.2
|
image: docker/compose:alpine-1.29.2
|
||||||
|
|
@ -54,3 +59,5 @@ volumes:
|
||||||
- name: docker_sock
|
- name: docker_sock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
- name: venv
|
||||||
|
temp: {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue