Add the mysql client in the correct stage

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-11-19 03:03:21 -04:00
parent 529c567ffb
commit 8ee9ac239d

View File

@@ -169,7 +169,7 @@ test-mysql:
services: services:
- mysql:8.0.3 - mysql:8.0.3
script: script:
- apt-get install -qq libmysqlclient-dev libssl-dev - apt-get install -qq libmysqlclient-dev libssl-dev mysql-client
- set -a && . ./config.env && set +a - set -a && . ./config.env && set +a
- pip install mysql-python==$PYTHON_MYSQL_VERSION - pip install mysql-python==$PYTHON_MYSQL_VERSION
- mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -e "set global character_set_server=utf8mb4;" - mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -e "set global character_set_server=utf8mb4;"
@@ -185,7 +185,7 @@ test-postgres:
services: services:
- postgres - postgres
script: script:
- apt-get install -qq libpq-dev mysql-client - apt-get install -qq libpq-dev
- set -a && . ./config.env && set +a - set -a && . ./config.env && set +a
- pip install psycopg2==$PYTHON_PSYCOPG2_VERSION - pip install psycopg2==$PYTHON_PSYCOPG2_VERSION
- python manage.py test --mayan-apps --settings=mayan.settings.testing.gitlab-ci.db_postgres --nomigrations - python manage.py test --mayan-apps --settings=mayan.settings.testing.gitlab-ci.db_postgres --nomigrations