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 03a3f07
Showing 1 changed file with 47 additions and 23 deletions.
70 changes: 47 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,57 @@
sudo: false
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- 3.8
services:
- postgresql
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'
- DB=sqlite DJANGO_PACKAGE=Django~=2.2
- DB=postgres DJANGO_PACKAGE=Django~=2.2
- DB=sqlite DJANGO_PACKAGE=Django~=3.0
- DB=postgres DJANGO_PACKAGE=Django~=3.0
- DB=sqlite DJANGO_PACKAGE=Django~=3.1
- DB=postgres DJANGO_PACKAGE=Django~=3.1
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"
- python: 3.8
env: REQ="Django>=3.1,<3.2" DB=postgres
- python: 3.7
env: REQ="Django>=3.1,<3.2"
- python: 3.6
env: REQ="Django>=3.1,<3.2"
- python: 3.8
env: REQ="Django>=3.0,<3.1"
- python: 3.7
env: REQ="Django>=3.0,<3.1"
- python: 3.6
env: REQ="Django>=3.0,<3.1"
- python: 3.7
env: REQ="Django>=2.2,<3.0"
- python: 3.7
env: REQ="Django>=2.2,<3.0" DB=postgres
- python: 3.6
env: REQ="Django>=2.2,<3.0"
- python: 3.5
env: REQ="Django>=2.2,<3.0"
- python: 3.7
env: REQ="Django>=2.1,<2.2"
- python: 3.7
env: REQ="Django>=2.0,<2.1"
- python: 3.7
env: REQ="Django>=1.11,<2.0"
- python: 3.6
env: REQ="Django>=1.11,<2.0"
- python: 3.5
env: REQ="Django>=1.11,<2.0"
- python: 2.7
env: REQ="Django>=1.11,<2.0"
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 03a3f07

Please sign in to comment.