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:
|
install:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
|
env:
|
||||||
|
- DB=sqlite
|
||||||
|
- DB=mysql
|
||||||
|
- DB=postgres
|
||||||
addons:
|
addons:
|
||||||
postgresql: "9.4"
|
postgresql: "9.4"
|
||||||
script:
|
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'
|
LANGUAGE_CODE = 'en-us'
|
||||||
|
|
||||||
TIME_ZONE = 'UTC'
|
TIME_ZONE = 'UTC'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user