Skip to content

Commit

Permalink
Add newer versions of Django and Python to the CI matrix
Browse files Browse the repository at this point in the history
I find explicitly stating combinations easier than managing exclusions.
  • Loading branch information
matthiask committed Nov 22, 2020
1 parent edaef30 commit 51091d9
Showing 1 changed file with 41 additions and 26 deletions.
67 changes: 41 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,48 @@
sudo: false
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
env:
- DB=sqlite DJANGO_PACKAGE=Django~=1.11
- DB=postgres DJANGO_PACKAGE=Django~=1.11
- DB=sqlite DJANGO_PACKAGE=Django~=2.0
- DB=postgres DJANGO_PACKAGE=Django~=2.0
- DB=postgres DJANGO_PACKAGE='--pre Django>2.0,<2.2'
- DB=sqlite DJANGO_PACKAGE='--pre Django>2.0,<2.2'
- 3.8
services:
- postgresql
matrix:
exclude:
- python: "2.7"
env: DB=sqlite DJANGO_PACKAGE=Django~=2.0
- python: "2.7"
env: DB=postgres DJANGO_PACKAGE=Django~=2.0
- python: "2.7"
env: DB=postgres DJANGO_PACKAGE='--pre Django>2.0,<2.2'
- python: "2.7"
env: DB=sqlite DJANGO_PACKAGE='--pre Django>2.0,<2.2'
- python: "3.4"
env: DB=postgres DJANGO_PACKAGE='--pre Django>2.0,<2.2'
- python: "3.4"
env: DB=sqlite DJANGO_PACKAGE='--pre Django>2.0,<2.2'
install: 'pip install $DJANGO_PACKAGE && pip install .'
fast_finish: true
include:
- python: 3.8
env: REQ="Django>=3.1,<3.2" DB=sqlite
- python: 3.8
env: REQ="Django>=3.1,<3.2" DB=postgres
- python: 3.7
env: REQ="Django>=3.1,<3.2" DB=sqlite
- python: 3.6
env: REQ="Django>=3.1,<3.2" DB=sqlite
- python: 3.8
env: REQ="Django>=3.0,<3.1" DB=sqlite
- python: 3.7
env: REQ="Django>=3.0,<3.1" DB=sqlite
- python: 3.6
env: REQ="Django>=3.0,<3.1" DB=sqlite
- python: 3.7
env: REQ="Django>=2.2,<3.0" DB=sqlite
- python: 3.7
env: REQ="Django>=2.2,<3.0" DB=postgres
- python: 3.6
env: REQ="Django>=2.2,<3.0" DB=sqlite
- python: 3.5
env: REQ="Django>=2.2,<3.0" DB=sqlite
- python: 3.7
env: REQ="Django>=2.1,<2.2" DB=sqlite
- python: 3.7
env: REQ="Django>=2.0,<2.1" DB=sqlite
- python: 3.7
env: REQ="Django>=1.11,<2.0" DB=sqlite
- python: 3.6
env: REQ="Django>=1.11,<2.0" DB=sqlite
- python: 3.5
env: REQ="Django>=1.11,<2.0" DB=sqlite
- python: 2.7
env: REQ="Django>=1.11,<2.0" DB=sqlite
install: 'pip install $REQ && pip install .'
script: make test SETTINGS=tests.travis_settings
before_script:
- psql -c 'create database test_ool;' -U postgres
- pip install psycopg2-binary
- pip install psycopg2-binary

0 comments on commit 51091d9

Please sign in to comment.