Run tests using postgresql to reproduce a crash
parent
07c38baa83
commit
584d95647a
|
|
@ -1,5 +1,7 @@
|
|||
language: python
|
||||
python: 3.5
|
||||
services:
|
||||
- postgresql
|
||||
env:
|
||||
- TOX_ENV=py27-17
|
||||
- TOX_ENV=py27-18
|
||||
|
|
@ -24,6 +26,8 @@ matrix:
|
|||
- env: TOX_ENV=py34-master
|
||||
- env: TOX_ENV=py35-master
|
||||
- env: TOX_ENV=py36-master
|
||||
before_script:
|
||||
- psql -c 'create database djadmininterface;' -U postgres
|
||||
install:
|
||||
- pip install tox
|
||||
script:
|
||||
|
|
|
|||
|
|
@ -41,8 +41,12 @@ TEMPLATES = [{
|
|||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'djadmininterface',
|
||||
'USER': 'postgres',
|
||||
'PASSWORD': 'postgres',
|
||||
'HOST': '',
|
||||
'PORT': ''
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue