From 7b68e271c804ddec08a2391bab5d8a8b8f269c94 Mon Sep 17 00:00:00 2001 From: Michael Price Date: Fri, 23 Feb 2018 01:38:06 -0400 Subject: [PATCH] Only pull the Database Docker image for the test that requires it. Signed-off-by: Michael Price --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dce747d40f..d990a4eb68 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,4 @@ image: ubuntu:16.04 -services: - - mysql:latest - - postgres before_script: - apt-get -qq update - apt-get install -qq locales @@ -16,6 +13,8 @@ variables: MYSQL_ALLOW_EMPTY_PASSWORD: "yes" MYSQL_DATABASE: "mayan_edms" test:mysql: + services: + - mysql:latest script: - apt-get install -qq libmysqlclient-dev - pip install -r requirements/testing.txt @@ -27,6 +26,8 @@ test:mysql: tags: - mysql test:postgres: + services: + - postgres script: - apt-get install -qq libpq-dev - pip install -r requirements/testing.txt