Add testing setting files for gitlab-ci. Improve gitlab-ci config file.
This commit is contained in:
@@ -5,8 +5,6 @@ services:
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
- apt-get install -qq python-dev gcc tesseract-ocr tesseract-ocr-deu unpaper ghostscript libjpeg-dev libpng-dev libtiff-dev poppler-utils
|
||||
- mysql -u root -e 'create database mayan_edms;'
|
||||
- psql -c 'create database mayan_edms;' -U postgres
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
@@ -23,8 +21,13 @@ job2:
|
||||
script:
|
||||
- export TEST_APPS="acls authentication checkouts django_gpg document_indexing document_signatures documents dynamic_search folders lock_manager ocr permissions sources tags"
|
||||
- coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.base
|
||||
- coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.travis.db_mysql
|
||||
- coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.travis.db_postgres
|
||||
- coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.gitlab-ci.db_mysql
|
||||
- coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.gitlab-ci.db_postgres
|
||||
- coveralls
|
||||
only:
|
||||
- development
|
||||
variables:
|
||||
POSTGRES_DB: mayan_edms
|
||||
POSTGRES_PASSWORD: postgres
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||
MYSQL_DATABASE: mayan_edms
|
||||
|
||||
0
mayan/settings/testing/gitlab-ci/__init__.py
Normal file
0
mayan/settings/testing/gitlab-ci/__init__.py
Normal file
11
mayan/settings/testing/gitlab-ci/db_mysql.py
Normal file
11
mayan/settings/testing/gitlab-ci/db_mysql.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from ..base import * # NOQA
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'mayan_edms',
|
||||
'USER': 'root',
|
||||
}
|
||||
}
|
||||
12
mayan/settings/testing/gitlab-ci/db_postgres.py
Normal file
12
mayan/settings/testing/gitlab-ci/db_postgres.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from ..base import * # NOQA
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'mayan_edms',
|
||||
'USER': 'postgres',
|
||||
'PASSWORD': 'postgres',
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user