Travis CI postgresql

This commit is contained in:
nikolark committed 2013-10-17 10:46:07 +02:00
1 parent 8d03acdf4f
commit 320e10dbbb
2 files changed
+6 -4

No files matched your search

+3 -1
View File
@@ -3,8 +3,10 @@ python:
- "2.7"
install:
pip install -r requirements.txt --use-mirrors
before_script:
- psql -c 'create database dusken_test;' -U postgres
script:
python manage.py test
python manage.py test --settings="dusken.settings-sample"
notifications:
irc: "irc.ifi.uio.no#edb"
+3 -3
View File
@@ -12,10 +12,10 @@ MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'main', # Or path to database file if using sqlite3.
'USER': 'mdb_su', # Not used with sqlite3.
'NAME': 'dusken_test', # Or path to database file if using sqlite3.
'USER': 'postgres', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': 'postgresql.neuf.no', # Set to empty string for localhost. Not used with sqlite3.
'HOST': '127.0.0.1', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}