Skip to content

Instantly share code, notes, and snippets.

@treystout
Created September 16, 2014 15:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treystout/21d99cd2cc306d973110 to your computer and use it in GitHub Desktop.
Save treystout/21d99cd2cc306d973110 to your computer and use it in GitHub Desktop.
Travis Config for Python/Postgres Project
language: python
python:
- "2.7"
install: pip install -r requirements.txt
addons:
postgresql: "9.3"
services:
- redis-server
env:
- SQL_DBNAME=yourdbname SQL_USER=postgres SQL_PASS=""
before_script:
- psql -c 'create database ottoman_test;' -U postgres
- python manage.py database bootstrap
- python manage.py database migrate
- pip install -e .
notifications:
hipchat:
rooms:
- YourAPIKey@YourRoom
template:
- '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}'
script: py.test -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment