Let's try Travis with MySQL and SQLite too

This commit is contained in:
Pēteris Caune 2015-08-13 22:06:54 +03:00
parent 86b3964bb9
commit 0b35cb7201
2 changed files with 22 additions and 0 deletions

View File

@ -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:

View File

@ -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'