forked from quotient-technology-inc/cabot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (28 loc) · 912 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 [email protected] --registry http://registry.npmjs.org/
- gem install foreman
-
- sudo pip install virtualenv
- sudo virtualenv venv
- sudo ./venv/bin/pip install --upgrade setuptools
- 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