Commit 61a3bc35 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

try not to wait for db in testing CI

yet another try to fix CI
parent 765b94aa
Pipeline #51892 failed with stages
in 4 minutes and 10 seconds
......@@ -39,11 +39,14 @@ build-frontend:
test-backend:
image: $CI_REGISTRY_IMAGE/backend:${CI_COMMIT_REF_NAME}
services:
- postgres:11.4
- postgres:12.2-alpine
- redis:alpine
stage: test
variables:
DATABASE_HOST: localhost
DATABASE_HOST: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: ""
DJANGO_SETTINGS_MODULE: "metagenedb.settings-gitlab-ci"
REDIS_HOST: "localhost"
CACHE_TTL: "0"
......@@ -52,7 +55,7 @@ test-backend:
- cd backend
- pipenv install --dev --system --deploy
- flake8 --max-line-length 120
- until pg_isready -h ${DATABASE_HOST}; do echo waiting; sleep 2; done;
# - until pg_isready -h ${DATABASE_HOST}; do echo waiting; sleep 2; done;
- pytest --cov .
deploy-dev:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment