New container build on Travis

This commit is contained in:
Ilan Steemers
2015-08-30 20:57:05 +02:00
parent 3a27af0877
commit 452f53f899
2 changed files with 11 additions and 3 deletions
+7 -2
View File
@@ -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:
+4 -1
View File
@@ -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'