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
13250151ea
commit
3f16f3a964
22
.drone.yml
22
.drone.yml
|
|
@ -1,14 +1,19 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: test
|
||||
environment:
|
||||
project_name: rgraph
|
||||
|
||||
steps:
|
||||
- name: db-up
|
||||
image: docker/compose:alpine-1.29.2
|
||||
environment:
|
||||
POSTGRES_USER: rgraph
|
||||
POSTGRES_PASSWORD: rgraph
|
||||
POSTGRES_DB: rgraph
|
||||
POSTGRES_USER:
|
||||
from_secrets: TESTING_USER
|
||||
POSTGRES_PASSWORD:
|
||||
from_secrets: TESTING_PASSWORD
|
||||
POSTGRES_DB:
|
||||
from_secrets: TESTING_DB
|
||||
volumes:
|
||||
- name: docker_sock
|
||||
path: /var/run/docker.sock
|
||||
|
|
@ -18,9 +23,12 @@ steps:
|
|||
- name: test
|
||||
image: python:3.10-alpine
|
||||
environment:
|
||||
POSTGRES_USER:
|
||||
POSTGRES_USER: rgraph
|
||||
POSTGRES_PASSWORD: rgraph
|
||||
POSTGRES_USER:
|
||||
from_secrets: TESTING_USER
|
||||
POSTGRES_PASSWORD:
|
||||
from_secrets: TESTING_PASSWORD
|
||||
POSTGRES_DB:
|
||||
from_secrets: TESTING_DB
|
||||
commands:
|
||||
- hostip=$(ip route show | awk '/default/ {print $3}')
|
||||
- export POSTGRES_URL=$hostip
|
||||
|
|
@ -29,7 +37,7 @@ steps:
|
|||
- pip install -r requirements.txt
|
||||
- pip install .
|
||||
- pytest
|
||||
- name: db-down
|
||||
- name: db-cleanup
|
||||
image: docker/compose:alpine-1.29.2
|
||||
volumes:
|
||||
- name: docker_sock
|
||||
|
|
|
|||
Loading…
Reference in New Issue