Skip to content

Commit

Permalink
Update Travis CI Matrix
Browse files Browse the repository at this point in the history
Updates are:

 - Remove Django 1.11 from allowed failures

 - Add Python 3.7 tests

 - Add Django 2.1 tests

 - Add database services

 - Exclude Python 3.4 tests with MySQL database
   (because new versions of mysqlclient don't support Python 3.4)
  • Loading branch information
kevin-brown authored and regzon committed Feb 13, 2019
1 parent d40bb9d commit 08ec579
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,50 @@
language: python
dist: xenial
sudo: false
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- '3.7'
env:
- DJANGO="Django>=1.11.0,<2.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=2.0,<2.1.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=2.1,<2.2.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=1.11.0,<2.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=2.0,<2.1.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=2.1,<2.2.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=1.11.0,<2.0" DB=mysql DB_NAME=mysql_db
- DJANGO="Django>=2.0,<2.1.0" DB=mysql DB_NAME=mysql_db
- DJANGO="Django>=2.1,<2.2.0" DB=mysql DB_NAME=mysql_db
matrix:
allow_failures:
- python: '2.7'
env: DJANGO="Django>=1.11.0,<2.0"
- python: '3.4'
env: DJANGO="Django>=1.11.0,<2.0"
- python: '3.5'
env: DJANGO="Django>=1.11.0,<2.0"
exclude:
- python: '2.7'
env: DJANGO="Django>=2.0,<2.1.0" DB=postgresql DB_NAME=travis_ci_test
- python: '2.7'
env: DJANGO="Django>=2.1,<2.2.0" DB=postgresql DB_NAME=travis_ci_test
- python: '2.7'
env: DJANGO="Django>=2.0,<2.1.0" DB=sqlite3 DB_NAME=db.sqlite3
- python: '2.7'
env: DJANGO="Django>=2.1,<2.2.0" DB=sqlite3 DB_NAME=db.sqlite3
- python: '2.7'
env: DJANGO="Django>=2.0,<2.1.0" DB=mysql DB_NAME=mysql_db
- python: '2.7'
env: DJANGO="Django>=2.1,<2.2.0" DB=mysql DB_NAME=mysql_db
- python: '3.4'
env: DJANGO="Django>=2.1,<2.2.0" DB=postgresql DB_NAME=travis_ci_test
- python: '3.4'
env: DJANGO="Django>=2.1,<2.2.0" DB=sqlite3 DB_NAME=db.sqlite3
- python: '3.4'
env: DJANGO="Django>=1.11.0,<2.0" DB=mysql DB_NAME=mysql_db
- python: '3.4'
env: DJANGO="Django>=2.0,<2.1.0" DB=mysql DB_NAME=mysql_db
- python: '3.4'
env: DJANGO="Django>=2.1,<2.2.0" DB=mysql DB_NAME=mysql_db
fast_finish: true
services:
- mysql
- postgresql
install:
- travis_retry pip install -q $DJANGO
- travis_retry pip install -r requirements.txt
Expand Down

0 comments on commit 08ec579

Please sign in to comment.