Adding travis settings and configuring the .travis.yml
parent
108a3dac29
commit
0397ae87c0
|
@ -2,11 +2,15 @@ language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.3"
|
- "3.3"
|
||||||
|
services:
|
||||||
|
- rabbitmq # will start rabbitmq-server
|
||||||
|
before_script:
|
||||||
|
- psql -c 'create database greenmine;' -U postgres
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements.txt --use-mirrors
|
- pip install -r requirements.txt --use-mirrors
|
||||||
- pip install coveralls --use-mirrors
|
- pip install coveralls --use-mirrors
|
||||||
script:
|
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:
|
notifications:
|
||||||
email:
|
email:
|
||||||
recipients:
|
recipients:
|
||||||
|
|
|
@ -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',
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue