Move travis-ci related settings files into their own module.
This commit is contained in:
@@ -19,9 +19,9 @@ before_script:
|
||||
- mysql -e 'create database mayan_edms;'
|
||||
- psql -c 'create database mayan_edms;' -U postgres
|
||||
script:
|
||||
- if [[ $DB == mysql ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.travis.db_mysql; fi
|
||||
- if [[ $DB == postgres ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.travis.db_postgres; fi
|
||||
- if [[ $DB == sqlite ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.travis.base; fi
|
||||
- if [[ $DB == mysql ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.travis.db_mysql; fi
|
||||
- if [[ $DB == postgres ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.travis.db_postgres; fi
|
||||
- if [[ $DB == sqlite ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.base; fi
|
||||
after_success:
|
||||
- coveralls
|
||||
branches:
|
||||
|
||||
0
mayan/settings/testing/travis/__init__.py
Normal file
0
mayan/settings/testing/travis/__init__.py
Normal file
@@ -1,6 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from .base import * # NOQA
|
||||
from ..base import * # NOQA
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from .base import * # NOQA
|
||||
from ..base import * # NOQA
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
Reference in New Issue
Block a user