mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-28 15:28:11 +08:00
New container build on Travis
This commit is contained in:
+7
-2
@@ -11,8 +11,13 @@ env:
|
||||
- DJANGO=1.8.4
|
||||
- DJANGO=1.7.10
|
||||
|
||||
sudo: false
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- tcl8.5
|
||||
|
||||
before_script:
|
||||
- sudo apt-get install tcl8.5
|
||||
- git clone https://github.com/antirez/disque.git disque_server
|
||||
- "cd disque_server/src && make && PREFIX=../ make install && cd -"
|
||||
- "./disque_server/bin/disque-server &"
|
||||
@@ -25,7 +30,7 @@ install:
|
||||
- python setup.py install
|
||||
|
||||
script:
|
||||
- coverage run --source=django_q -m py.test
|
||||
- coverage run --source=django_q -m py.testsudo: false
|
||||
- sphinx-build -b html -d docs/_build/doctrees -nW docs docs/_build/html
|
||||
|
||||
after_success:
|
||||
|
||||
@@ -26,6 +26,8 @@ def test_redis():
|
||||
broker = get_broker()
|
||||
with pytest.raises(Exception):
|
||||
broker.ping()
|
||||
Conf.REDIS = None
|
||||
Conf.DJANGO_REDIS = 'default'
|
||||
|
||||
|
||||
def test_disque():
|
||||
@@ -57,5 +59,6 @@ def test_disque():
|
||||
Conf.DISQUE = ['127.0.0.1:7712', '127.0.0.1:7713']
|
||||
with pytest.raises(ConnectionError):
|
||||
broker.get_connection()
|
||||
# back to djangoredis
|
||||
# back to django-redis
|
||||
Conf.DISQUE = None
|
||||
Conf.DJANGO_REDIS = 'default'
|
||||
|
||||
Reference in New Issue
Block a user