Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Django automatically renames test databases to 'test_%s' % settings.DATABASES[*]["NAME"], so modoboa_test became test_modoboa_test. There's no point creating the database in `before script` as the test suite creates it. https://docs.djangoproject.com/en/1.11/topics/testing/advanced/#django.db.connection.creation.create_test_db - target oldest currently supported database servers, travis currently defaults to PostgreSQL 9.2 which isn't supported anymore. - move database dependencies out of travis.yml into test_requirements.txt and pin to minimum versions recommended by django. See https://docs.djangoproject.com/en/1.11/ref/databases/ - use MySQL root user for tests, we already use the root user (postgres) for PostgreSQL. - fix typo in modoboa/test_settings for DB variable, default should be POSTGRESQL not POSTGRES - enable MySQL strict mode (on by default on MySQL >= 5.7) See https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode
- Loading branch information
Andrew Fyfe
committed
Jan 4, 2018
1 parent
f934163
commit 9923b93
Showing
3 changed files
with
20 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters