From 14626335b8bcdce3b71baba6fb0ebb11a18be156 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Thu, 31 Jul 2014 12:49:06 +0300 Subject: [PATCH] Use travis_retry in order to avoid network failures. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9478483..624ba11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,9 +50,9 @@ services: - postgresql - mysql install: - - pip install $DJANGO - - if [[ "$DB_ENGINE" == "django.db.backends.postgresql_psycopg2" ]] ; then pip install psycopg2; fi - - if [[ "$DB_ENGINE" == "django.db.backends.mysql" ]] ; then pip install MySQL-python; fi + - travis_retry pip install $DJANGO + - if [[ "$DB_ENGINE" == "django.db.backends.postgresql_psycopg2" ]] ; then travis_retry pip install psycopg2; fi + - if [[ "$DB_ENGINE" == "django.db.backends.mysql" ]] ; then travis_retry pip install MySQL-python; fi - python setup.py -q install before_script: - if [[ "$DB_ENGINE" == "django.db.backends.mysql" ]] ; then mysql -e 'create database test_project'; fi