Run tests using postgresql to reproduce a crash

pull/27/head
Bruno Alla 2017-07-11 21:44:14 +01:00
parent 07c38baa83
commit 584d95647a
3 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,7 @@
language: python language: python
python: 3.5 python: 3.5
services:
- postgresql
env: env:
- TOX_ENV=py27-17 - TOX_ENV=py27-17
- TOX_ENV=py27-18 - TOX_ENV=py27-18
@ -24,6 +26,8 @@ matrix:
- env: TOX_ENV=py34-master - env: TOX_ENV=py34-master
- env: TOX_ENV=py35-master - env: TOX_ENV=py35-master
- env: TOX_ENV=py36-master - env: TOX_ENV=py36-master
before_script:
- psql -c 'create database djadmininterface;' -U postgres
install: install:
- pip install tox - pip install tox
script: script:

View File

@ -41,8 +41,12 @@ TEMPLATES = [{
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': 'djadmininterface',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': '',
'PORT': ''
} }
} }

View File

@ -13,6 +13,7 @@ deps =
110: Django >= 1.10, < 1.11 110: Django >= 1.10, < 1.11
111: Django >= 1.11, < 1.12 111: Django >= 1.11, < 1.12
master: https://github.com/django/django/archive/master.tar.gz master: https://github.com/django/django/archive/master.tar.gz
psycopg2
coverage coverage
codecov codecov
commands = commands =