From 61a3bc352f2ffefa39bbd1f81a6ed9d7213388f5 Mon Sep 17 00:00:00 2001 From: Kenzo-Hugo Hillion <hillion.kenzo@posteo.net> Date: Wed, 24 Mar 2021 12:24:48 +0100 Subject: [PATCH] try not to wait for db in testing CI yet another try to fix CI --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4de9227..27b050d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: -- GitLab