From 56feae6e0eff5b76d1402d3bf7191e6da1548ebd Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 24 Oct 2016 02:27:10 -0400 Subject: [PATCH] Install DB development libraries for the required GitLab CI service. --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 568c4a36e3..82d4647ed7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,8 +12,9 @@ variables: MYSQL_DATABASE: "mayan_edms" test:mysql: script: + - apt-get install -qq libmysqlclient-dev - pip install -r requirements/testing.txt - - pip install -q mysql-python + - pip install mysql-python - apt-get install -qq mysql-client - mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -e "ALTER DATABASE $MYSQL_DATABASE CHARACTER SET utf8 COLLATE utf8_unicode_ci;" - coverage run manage.py runtests --settings=mayan.settings.testing.gitlab-ci.db_mysql --nomigrations @@ -22,8 +23,9 @@ test:mysql: - mysql test:postgres: script: + - apt-get install -qq libpq-dev - pip install -r requirements/testing.txt - - pip install -q psycopg2 + - pip install psycopg2 - coverage run manage.py runtests --settings=mayan.settings.testing.gitlab-ci.db_postgres --nomigrations - bash <(curl https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t $CODECOV_TOKEN tags: