Browse Source

Let's try Travis with MySQL and SQLite too

pull/7/head
Pēteris Caune 9 years ago
parent
commit
0b35cb7201
2 changed files with 22 additions and 0 deletions
  1. +4
    -0
      .travis.yml
  2. +18
    -0
      hc/settings.py

+ 4
- 0
.travis.yml 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:


+ 18
- 0
hc/settings.py 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'


Loading…
Cancel
Save