Skip to content

Commit 3271c0c

Browse files
committed
Modified travis.yml to install redis
1 parent 8b77e1e commit 3271c0c

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ notifications:
3131
email:
3232
on_success: change # [always|never|change]
3333
on_failure: always # [always|never|change]
34+
35+
services:
36+
- redis-server
37+
38+
before_script:
39+
- celery -A junction worker -l info

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ It is advised to install all the requirements inside [virtualenv], use [virtuale
1515
[virtualenvwrapper]: https://virtualenvwrapper.readthedocs.org/en/latest/
1616

1717
```
18-
sudo apt-get install libpq-dev python-dev
18+
sudo apt-get update
19+
sudo apt-get upgrade
20+
sudo apt-get install libpq-dev python-dev build-essential tcl
1921
pip install -r requirements-dev.txt
2022
cp settings/dev.py.sample settings/dev.py
2123
python manage.py migrate --noinput
2224
python manage.py sample_data
25+
sudo apt-get -y install redis-server
2326
```
2427

2528
Initial auth data: admin/123123
@@ -161,6 +164,7 @@ Contributing
161164
<td align=center><img width=100 src=https://avatars.githubusercontent.com/u/889999?v=3><br>Vignesh Sarma K (<a href=https://github.com/vigneshsarma>@vigneshsarma</a>)</td>
162165
<td align=center><img width=100 src=https://avatars.githubusercontent.com/u/316253?v=3><br>Vijay (<a href=https://github.com/vnbang2003>@vnbang2003</a>)</td>
163166
<td align=center><img width=100 src=https://avatars.githubusercontent.com/u/6693374?v=3><br>Vinay Singh (<a href=https://github.com/vinay13>@vinay13</a>)</td>
167+
<td align=center><img width=100 src=https://avatars.githubusercontent.com/u/7351791?v=3><br>Rahul Arora (<a href=https://github.com/rahulxxarora>@rahulxxarora</a>)</td>
164168
</tr>
165169
</table>
166170

settings/dev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626
INSTALLED_APPS += ('django_extensions',)
2727

2828
# settings for celery
29-
BROKER_URL = os.environ.get("BROKER_URL", "redis://redis:6379/0")
30-
CELERY_RESULT_BACKEND = os.environ.get("CELERY_RESULT_BACKEND", 'redis://redis:6379/0')
29+
BROKER_URL = os.environ.get("BROKER_URL", "redis://127.0.0.1:6379/0")
30+
CELERY_RESULT_BACKEND = os.environ.get("CELERY_RESULT_BACKEND", 'redis://127.0.0.1:6379/0')

0 commit comments

Comments
 (0)