forked from cdr-stats/cdr-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (30 loc) · 1 KB
/
.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
language: python
python:
- "2.7"
env:
- DJANGO=1.4.3
services:
- mongodb # will start riak
- redis-server
# - rabbitmq # will start rabbitmq-server
# - memcache # will start memcached
install:
# - pip install -q Django==$DJANGO --use-mirrors
- bash install/requirements/install-requirements.sh
# - pip install pep8 --use-mirrors
# - pip install https://github.com/dcramer/pyflakes/tarball/master
before_script:
- cp install/conf/settings_local.py cdr_stats/settings_local.py
- cp install/conf/settings_travis.py cdr_stats/settings_travis.py
#TODO: Now we should use postgresql
- "mysql -e 'create database cdrstats;'"
- "mysql -e 'create database cdrstats_test;'"
# - "pep8 --exclude=migrations --ignore=E501,E225 cdr_stats"
# - pyflakes -x W cdr_stats
script:
- python cdr_stats/manage.py test --settings=settings_travis -s -x --with-xtraceback --with-color
#- python cdr_stats/manage.py test --settings=settings_travis -s --with-progressive
# whitelist
branches:
only:
- develop