From a34e0793051330fd61cf07e197cef801992d8cc1 Mon Sep 17 00:00:00 2001 From: Dario Marcelino Date: Sat, 6 Jan 2018 12:15:29 +0000 Subject: [PATCH] Travis: fix mysql and python 3.3 jobs --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b79e734..ae4313a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,9 +35,10 @@ before_script: - mysql -e 'create database wagtail_modeltranslation;' - psql -c 'create database wagtail_modeltranslation;' -U postgres install: - - if [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "2" ]]; then pip install -q mysql-python; elif [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "3" ]]; then pip install -q mysqlclient; fi - - if [[ $DB == postgres ]]; then pip install -q psycopg2; fi - pip install --upgrade -q pip setuptools + - if [[ $DB == mysql ]] && [[ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then pip install -q mysql-python; elif [[ $DB == mysql ]] && [[ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]]; then pip install -q mysqlclient; fi + - if [[ $DB == postgres ]]; then pip install -q psycopg2; fi + - if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then pip install 'Django>=1.8,<1.9'; fi - pip install -q $WAGTAIL - pip install --process-dependency-links -e . script: