-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (33 loc) · 1019 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.6"
- "2.7"
before_install:
- export PIP_USE_MIRRORS=true
- export DJANGO_SETTINGS_MODULE=celerymon.test_settings
- sudo apt-get update -qq
- sudo apt-get install -y supervisor
install:
- pip install -e .
- pip install -r requirements/tests.txt Django==$DJANGO
before_script:
- flake8 --exclude=migrations celerymon
- sudo cp demo/supervisor/worker.conf /etc/supervisor/conf.d/
- sudo sed -i "s'./manage.py'`which python` `pwd`/demo/manage.py'g" /etc/supervisor/conf.d/worker.conf
- sudo sed -i "s'/home/example.com/www'`pwd`/demo'g" /etc/supervisor/conf.d/worker.conf
- sudo /etc/init.d/supervisor stop
- cd demo && ./manage.py syncdb --noinput && cd -
- sleep 3
- sudo /etc/init.d/supervisor start
- sleep 15
- sudo supervisorctl -c /etc/supervisor/supervisord.conf status
- cat /var/log/celery-mail_worker.log
script:
- make test-travis PYTHON=`which python`
env:
- DJANGO=1.4.14
- DJANGO=1.5.9
- DJANGO=1.6.6
branches:
only:
- master