diff --git a/.travis.yml b/.travis.yml index 0aa4e2f..e1c7e63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/dusken/settings-sample.py b/dusken/settings-sample.py index 395ad56..895d3e6 100644 --- a/dusken/settings-sample.py +++ b/dusken/settings-sample.py @@ -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. } }