mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 18:30:55 +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.8.4
|
||||||
- DJANGO=1.7.10
|
- DJANGO=1.7.10
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- tcl8.5
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get install tcl8.5
|
|
||||||
- git clone https://github.com/antirez/disque.git disque_server
|
- git clone https://github.com/antirez/disque.git disque_server
|
||||||
- "cd disque_server/src && make && PREFIX=../ make install && cd -"
|
- "cd disque_server/src && make && PREFIX=../ make install && cd -"
|
||||||
- "./disque_server/bin/disque-server &"
|
- "./disque_server/bin/disque-server &"
|
||||||
@@ -25,7 +30,7 @@ install:
|
|||||||
- python setup.py install
|
- python setup.py install
|
||||||
|
|
||||||
script:
|
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
|
- sphinx-build -b html -d docs/_build/doctrees -nW docs docs/_build/html
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ def test_redis():
|
|||||||
broker = get_broker()
|
broker = get_broker()
|
||||||
with pytest.raises(Exception):
|
with pytest.raises(Exception):
|
||||||
broker.ping()
|
broker.ping()
|
||||||
|
Conf.REDIS = None
|
||||||
|
Conf.DJANGO_REDIS = 'default'
|
||||||
|
|
||||||
|
|
||||||
def test_disque():
|
def test_disque():
|
||||||
@@ -57,5 +59,6 @@ def test_disque():
|
|||||||
Conf.DISQUE = ['127.0.0.1:7712', '127.0.0.1:7713']
|
Conf.DISQUE = ['127.0.0.1:7712', '127.0.0.1:7713']
|
||||||
with pytest.raises(ConnectionError):
|
with pytest.raises(ConnectionError):
|
||||||
broker.get_connection()
|
broker.get_connection()
|
||||||
# back to djangoredis
|
# back to django-redis
|
||||||
|
Conf.DISQUE = None
|
||||||
Conf.DJANGO_REDIS = 'default'
|
Conf.DJANGO_REDIS = 'default'
|
||||||
|
|||||||
Reference in New Issue
Block a user