Skip to content
Snippets Groups Projects
Commit 61a3bc35 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion :recycle:
Browse files

try not to wait for db in testing CI

yet another try to fix CI
parent 765b94aa
No related branches found
No related tags found
1 merge request!69Resolve "Allow filtering on genes with KEGG or EggNOG annotations"
Pipeline #51892 failed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment