Skip to content

Commit

Permalink
Updated travis settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Bauer committed Jul 7, 2017
1 parent 96783b4 commit a8a98ac
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions ci/testsettings.py
Expand Up @@ -5,13 +5,34 @@
# have to be manually restarted because changes will not be noticed
# immediately.

# DEBUG = False

# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
# }
DEBUG = False

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
# Django needs to make databases in the test mysql server
'NAME': 'travispq',
'USER': 'root',
'PASSWORD': '',
'HOST': '127.0.0.1',
'OPTIONS': {
# In each case, we want strict mode on to catch truncation issues
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
# Load the socket info from .my.cnf in the travis user
'read_default_file': '~travis/.my.cnf'
},
'PORT': '',
'TEST': {
# We also want the test databse to for utf8 and the general
# collation to keep case sensitive unicode searches working
# as we would expect on production
'CHARSET': 'utf8',
'COLLATION': 'utf8_general_ci',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
},
},
},
}

# secret key added as a travis build step

0 comments on commit a8a98ac

Please sign in to comment.