drone-ci testing
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
c2aab348ca
commit
4a51622c7e
11
.drone.yml
11
.drone.yml
|
|
@ -20,6 +20,13 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- docker-compose -p rgraph-test up -d
|
- docker-compose -p rgraph-test up -d
|
||||||
|
|
||||||
|
- name: requirements
|
||||||
|
image: python:3.10-alpine
|
||||||
|
- python -m venv .venv
|
||||||
|
- . .venv/bin/activate
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pip install .
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: python:3.10-alpine
|
image: python:3.10-alpine
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -32,10 +39,6 @@ steps:
|
||||||
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
|
||||||
- python -m venv .venv
|
|
||||||
- . .venv/bin/activate
|
|
||||||
- pip install -r requirements.txt
|
|
||||||
- pip install .
|
|
||||||
- pytest
|
- pytest
|
||||||
- name: db-cleanup
|
- name: db-cleanup
|
||||||
image: docker/compose:alpine-1.29.2
|
image: docker/compose:alpine-1.29.2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue