forked from GithubBackups/healthchecks
Let's try Travis with MySQL and SQLite too
This commit is contained in:
parent
86b3964bb9
commit
0b35cb7201
@ -5,6 +5,10 @@ python:
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
- pip install coveralls
|
||||
env:
|
||||
- DB=sqlite
|
||||
- DB=mysql
|
||||
- DB=postgres
|
||||
addons:
|
||||
postgresql: "9.4"
|
||||
script:
|
||||
|
@ -78,6 +78,24 @@ DATABASES = {
|
||||
}
|
||||
}
|
||||
|
||||
if os.environ.get("DB") == "mysql":
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'USER': 'root',
|
||||
'NAME': 'hc',
|
||||
'TEST': {'CHARSET': 'UTF8'}
|
||||
}
|
||||
}
|
||||
|
||||
if os.environ.get("DB") == "sqlite":
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': './hc.sqlite',
|
||||
}
|
||||
}
|
||||
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
|
||||
TIME_ZONE = 'UTC'
|
||||
|
Loading…
x
Reference in New Issue
Block a user