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

This commit is contained in:
Andrei Stoica 2023-05-15 22:17:05 -04:00
parent b366a81716
commit 01630d2d5f
1 changed files with 6 additions and 2 deletions

View File

@ -30,11 +30,15 @@ steps:
secrets: [TESTING_USER, TESTING_PASSWORD, TESTING_DB]
commands:
- hostip=$(ip route show | awk '/default/ {print $3}')
- echo $hostip
- export POSTGRES_URL=rgraph-test_psql
- export POSTGRES_URL=$hostip
- export POSTGRES_USER=$${POSTGRES_USER}
- export POSTGRES_PASSWORD=$${POSTGRES_PASSWORD}
- export POSTGRES_DB=$${POSTGRES_DB}
- python -m venv .venv
- . .venv/bin/activate
- pip install -r requirements.txt
- pip install .
- pytest
- name: db-down
image: docker/compose:alpine-1.29.2
volumes: