Skip to content

Commit

Permalink
added travis file
Browse files Browse the repository at this point in the history
  • Loading branch information
egourlao committed Jan 17, 2017
1 parent e70751f commit cf39bc9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: python

python:
- 2.7

install:
- pip install -r requirements.txt
- python manage.py migrate
13 changes: 13 additions & 0 deletions picsous/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,16 @@
from local_settings import *
except ImportError:
pass


if 'TRAVIS' in os.environ:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'travisci',
'USER': 'postgres',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '',
}
}

0 comments on commit cf39bc9

Please sign in to comment.