Skip to content
Snippets Groups Projects
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
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: ...@@ -39,11 +39,14 @@ build-frontend:
test-backend: test-backend:
image: $CI_REGISTRY_IMAGE/backend:${CI_COMMIT_REF_NAME} image: $CI_REGISTRY_IMAGE/backend:${CI_COMMIT_REF_NAME}
services: services:
- postgres:11.4 - postgres:12.2-alpine
- redis:alpine - redis:alpine
stage: test stage: test
variables: variables:
DATABASE_HOST: localhost DATABASE_HOST: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: ""
DJANGO_SETTINGS_MODULE: "metagenedb.settings-gitlab-ci" DJANGO_SETTINGS_MODULE: "metagenedb.settings-gitlab-ci"
REDIS_HOST: "localhost" REDIS_HOST: "localhost"
CACHE_TTL: "0" CACHE_TTL: "0"
...@@ -52,7 +55,7 @@ test-backend: ...@@ -52,7 +55,7 @@ test-backend:
- cd backend - cd backend
- pipenv install --dev --system --deploy - pipenv install --dev --system --deploy
- flake8 --max-line-length 120 - 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 . - pytest --cov .
deploy-dev: deploy-dev:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment