From e478beee5cf39e1f454c731d0166bcb5bf3db0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sun, 21 Oct 2018 12:13:03 +0200 Subject: [PATCH 1/2] core.ci -- Narrow services to jobs that need them --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95d9305d..0a0e501f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,5 @@ image: "python:3.5" -services: - - postgres:latest - - redis:latest - variables: # GestioCOF settings DJANGO_SETTINGS_MODULE: "cof.settings.prod" @@ -37,6 +33,9 @@ test: - coverage run manage.py test after_script: - coverage report + services: + - postgres:latest + - redis:latest cache: key: test paths: From b795a06b9c307777d5c7d65e6233d432a349a565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sun, 21 Oct 2018 12:33:26 +0200 Subject: [PATCH 2/2] core.ci -- Use postgres version of production server --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a0e501f..35637457 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,7 +34,7 @@ test: after_script: - coverage report services: - - postgres:latest + - postgres:9.6 - redis:latest cache: key: test