drone-ci testing
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
19d60c9d86
commit
b366a81716
|
|
@ -29,15 +29,12 @@ steps:
|
||||||
from_secret: TESTING_DB
|
from_secret: TESTING_DB
|
||||||
secrets: [TESTING_USER, TESTING_PASSWORD, TESTING_DB]
|
secrets: [TESTING_USER, TESTING_PASSWORD, TESTING_DB]
|
||||||
commands:
|
commands:
|
||||||
|
- hostip=$(ip route show | awk '/default/ {print $3}')
|
||||||
|
- echo $hostip
|
||||||
- export POSTGRES_URL=rgraph-test_psql
|
- export POSTGRES_URL=rgraph-test_psql
|
||||||
- export POSTGRES_USER=$${POSTGRES_USER}
|
- export POSTGRES_USER=$${POSTGRES_USER}
|
||||||
- export POSTGRES_PASSWORD=$${POSTGRES_PASSWORD}
|
- export POSTGRES_PASSWORD=$${POSTGRES_PASSWORD}
|
||||||
- export POSTGRES_DB=$${POSTGRES_DB}
|
- export POSTGRES_DB=$${POSTGRES_DB}
|
||||||
- python -m venv .venv
|
|
||||||
- . .venv/bin/activate
|
|
||||||
- pip install -r requirements.txt
|
|
||||||
- pip install .
|
|
||||||
- pytest
|
|
||||||
- name: db-down
|
- name: db-down
|
||||||
image: docker/compose:alpine-1.29.2
|
image: docker/compose:alpine-1.29.2
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue