Add Makefile targets to run all or selected tests against a
MySQL or Postgres Docker container. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
1
mayan/settings/testing/docker/__init__.py
Normal file
1
mayan/settings/testing/docker/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .base import * # NOQA
|
||||
6
mayan/settings/testing/docker/base.py
Normal file
6
mayan/settings/testing/docker/base.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from ..base import * # NOQA
|
||||
|
||||
SIGNATURES_GPG_PATH = '/usr/bin/gpg1'
|
||||
|
||||
13
mayan/settings/testing/docker/db_mysql.py
Normal file
13
mayan/settings/testing/docker/db_mysql.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from .base import * # NOQA
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'mayan',
|
||||
'USER': 'root',
|
||||
'HOST': '127.0.0.1',
|
||||
'PORT': '3306',
|
||||
}
|
||||
}
|
||||
13
mayan/settings/testing/docker/db_postgres.py
Normal file
13
mayan/settings/testing/docker/db_postgres.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from .base import * # NOQA
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'postgres',
|
||||
'USER': 'postgres',
|
||||
'HOST': 'localhost',
|
||||
'PORT': '5432',
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user