Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jonatan treijs
committed
Feb 9, 2018
1 parent
4bbb85b
commit e017bdc
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
language: python | ||
before_install: cd kamaji-api | ||
|
||
python: | ||
- 2.7 | ||
|
||
services: postgresql | ||
|
||
before_install: | ||
- cd kamaji-api | ||
- export DJANGO_SETTINGS_MODULE=api.settings.travis | ||
- export PYTHONPATH=$HOME/builds/fredkj/kamaji | ||
- export PIP_USE_MIRRORS=true | ||
|
||
install: | ||
- pip install -r requirements.txt | ||
- pip install psycopg2 --quiet | ||
|
||
before_script: | ||
- psql -c "CREATE DATABASE mydb;" -U postgres | ||
|
||
script: | ||
- cd kamajiapi | ||
- python manage.py migrate --noinput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
import logging | ||
|
||
from .base import * | ||
|
||
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
'NAME': 'travisci', | ||
'USER': 'postgres', | ||
'PASSWORD': '', | ||
'HOST': 'localhost', | ||
'PORT': '', | ||
} | ||
} |