Fixed pip installation of mysql module.

This commit is contained in:
Dirk Eschler 2017-04-13 14:08:15 +02:00
parent 23cd10432b
commit c4f146cc49

View file

@ -66,7 +66,7 @@ before_script:
- mysql -e 'create database modeltranslation;'
- psql -c 'create database modeltranslation;' -U postgres
install:
- if [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "2" ]]; then echo "mysql-python"; elif [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "3" ]]; then echo "mysqlclient"; fi
- 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 -q Pillow
- IDJANGO=$(./travis.py $DJANGO)