cabot/.travis.yml

33 lines
912 B
YAML
Raw Normal View History

language: python
python:
- "2.7"
services:
- redis-server
# install deps
install:
- sudo apt-get update
- sudo apt-get install -y python-software-properties
- sudo apt-get install gcc python-dev git python-pip libpq-dev npm rubygems
-
- sudo npm install -g coffee-script less@1.3 --registry http://registry.npmjs.org/
- gem install foreman
-
- sudo pip install virtualenv
- sudo virtualenv venv
- sudo ./venv/bin/pip install --upgrade setuptools
2014-12-05 16:52:33 +00:00
- CABOT_PLUGINS_ENABLED=cabot_alert_hipchat,cabot_alert_twilio,cabot_alert_email
- sudo ./venv/bin/pip install --timeout=30 --exists-action=w -e . --no-use-wheel
# setup databases
before_script:
- cp conf/development.env.example conf/development.env
- cp conf/production.env.example conf/production.env
- . venv/bin/activate
- foreman run python manage.py syncdb --migrate --noinput
# tests
script:
- foreman run python manage.py test cabot