Only pull the Database Docker image for the test that requires it.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-04-01 02:36:55 -04:00
committed by Roberto Rosario
parent a1c8b8e5de
commit 7b68e271c8
+4 -3
View File
@@ -1,7 +1,4 @@
image: ubuntu:16.04 image: ubuntu:16.04
services:
- mysql:latest
- postgres
before_script: before_script:
- apt-get -qq update - apt-get -qq update
- apt-get install -qq locales - apt-get install -qq locales
@@ -16,6 +13,8 @@ variables:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes" MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "mayan_edms" MYSQL_DATABASE: "mayan_edms"
test:mysql: test:mysql:
services:
- mysql:latest
script: script:
- apt-get install -qq libmysqlclient-dev - apt-get install -qq libmysqlclient-dev
- pip install -r requirements/testing.txt - pip install -r requirements/testing.txt
@@ -27,6 +26,8 @@ test:mysql:
tags: tags:
- mysql - mysql
test:postgres: test:postgres:
services:
- postgres
script: script:
- apt-get install -qq libpq-dev - apt-get install -qq libpq-dev
- pip install -r requirements/testing.txt - pip install -r requirements/testing.txt