From 0397ae87c018cb8babc3377a8a95ccf3fcaffdaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 15 Oct 2013 17:37:07 +0200 Subject: [PATCH] Adding travis settings and configuring the .travis.yml --- .travis.yml | 6 +++++- greenmine/settings/travis.py | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 greenmine/settings/travis.py diff --git a/.travis.yml b/.travis.yml index 1854bdf5..3559b240 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,15 @@ language: python python: - "2.7" - "3.3" +services: + - rabbitmq # will start rabbitmq-server +before_script: + - psql -c 'create database greenmine;' -U postgres install: - pip install -r requirements.txt --use-mirrors - pip install coveralls --use-mirrors script: - - coverage run --source=greenmine manage.py test --settings=greenmine.settings.testing greenmine + - coverage run --source=greenmine manage.py test --settings=greenmine.settings.travis greenmine notifications: email: recipients: diff --git a/greenmine/settings/travis.py b/greenmine/settings/travis.py new file mode 100644 index 00000000..89bf8080 --- /dev/null +++ b/greenmine/settings/travis.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +from .development import * + +SKIP_SOUTH_TESTS = True +SOUTH_TESTS_MIGRATE = False + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'greenmine', + 'USERNAME': 'postgres', + } +}