Skip to content

Commit

Permalink
Don't exclude mysql for Python3 anymore, install mysqlclient instead.…
Browse files Browse the repository at this point in the history
… Set proper excludes for Python 3.3 and 3.6.
  • Loading branch information
deschler committed Apr 13, 2017
1 parent dbb9bec commit ab2f2e1
Showing 1 changed file with 23 additions and 32 deletions.
55 changes: 23 additions & 32 deletions .travis.yml
Expand Up @@ -20,55 +20,45 @@ env:
- DJANGO=1.11 DB=mysql
matrix:
exclude:
- python: "3.6"
env: DJANGO=1.8 DB=sqlite
- python: "3.6"
env: DJANGO=1.8 DB=mysql
- python: "3.6"
env: DJANGO=1.8 DB=postgres

- python: "3.3"
env: DJANGO=1.9 DB=sqlite
- python: "3.3"
env: DJANGO=1.9 DB=postgres
env: DJANGO=1.9 DB=mysql
- python: "3.3"
env: DJANGO=1.9 DB=postgres
- python: "3.6"
env: DJANGO=1.9 DB=sqlite
- python: "3.6"
env: DJANGO=1.9 DB=mysql
- python: "3.6"
env: DJANGO=1.9 DB=postgres

- python: "3.3"
env: DJANGO=1.10 DB=sqlite
- python: "3.3"
env: DJANGO=1.10 DB=postgres
- python: "3.3"
env: DJANGO=1.10 DB=mysql
- python: "3.6"
env: DJANGO=1.10 DB=sqlite
- python: "3.6"
env: DJANGO=1.10 DB=postgres
- python: "3.6"
env: DJANGO=1.10 DB=mysql

- python: "3.3"
env: DJANGO=1.11 DB=sqlite
- python: "3.3"
env: DJANGO=1.11 DB=postgres
- python: "3.3"
env: DJANGO=1.11 DB=mysql

- python: "3.3"
env: DJANGO=1.8 DB=mysql
- python: "3.4"
env: DJANGO=1.8 DB=mysql
- python: "3.5"
env: DJANGO=1.8 DB=mysql
- python: "3.2"
env: DJANGO=1.9 DB=mysql
- python: "3.3"
env: DJANGO=1.9 DB=mysql
- python: "3.4"
env: DJANGO=1.9 DB=mysql
- python: "3.5"
env: DJANGO=1.9 DB=mysql
- python: "3.6"
env: DJANGO=1.9 DB=mysql
- python: "3.3"
env: DJANGO=1.10 DB=mysql
- python: "3.4"
env: DJANGO=1.10 DB=mysql
- python: "3.5"
env: DJANGO=1.10 DB=mysql
- python: "3.6"
env: DJANGO=1.10 DB=mysql
- python: "3.3"
env: DJANGO=1.11 DB=mysql
- python: "3.4"
env: DJANGO=1.11 DB=mysql
- python: "3.5"
env: DJANGO=1.11 DB=mysql
before_install:
- pip install -q 'flake8<3'
- PYFLAKES_NODOCTEST=1 flake8 modeltranslation
Expand All @@ -77,6 +67,7 @@ before_script:
- psql -c 'create database modeltranslation;' -U postgres
install:
- if [[ $DB == mysql ]]; then pip install -q mysql-python; fi
- if [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "2" ]]; then echo "mysql-python"; elif [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "3" ]]; then echo "mysqlclient"; fi
- if [[ $DB == postgres ]]; then pip install -q psycopg2; fi
- pip install -q Pillow
- IDJANGO=$(./travis.py $DJANGO)
Expand Down

0 comments on commit ab2f2e1

Please sign in to comment.