forked from snu-breeze/event-billing-2016
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 826 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
language: python
python:
- '2.7'
sudo: false
env:
- DB=sqlite3
- DB=postgres
install:
- pip install . --no-deps
- pip install --no-deps -r requirements.txt
- if [ $DB == 'postgres' ]; then pip install --no-deps psycopg2==2.5.3;
fi
- pip install flake8
before_script:
- if [ $DB == 'postgres' ]; then psql -c 'drop database if exists brambling_test;'
-U postgres; fi
- if [ $DB == 'postgres' ]; then psql -c 'create database brambling_test;' -U postgres;
fi
- "flake8 --ignore=E501 brambling"
script:
- "./manage.py test --verbosity=2 brambling"
notifications:
slack:
secure: U8uCS43H0wmkkolDc2VLdwN+vJTxfZtjP/1tHKejUGD6BKWJ5uKBjUjZFpy4O8FcfKkpybSobkK9bgo8/5UV9fi01/Ybli5oBp6gBQARQUKtzFBzLtSGReD5QHa/ezFcoFlxHkCFOZe4oZc/C2+l/x8IyaXxeB3pQvlFeKP+PSw=
on_success: change
on_failure: always
on_start: never