Created
September 16, 2014 15:39
-
-
Save treystout/21d99cd2cc306d973110 to your computer and use it in GitHub Desktop.
Travis Config for Python/Postgres Project
This file contains hidden or 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
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