Skip to content

Commit

Permalink
Merge pull request #565 from CTPUG/feature/rework_django_test_matrix
Browse files Browse the repository at this point in the history
Feature/rework django test matrix
  • Loading branch information
drnlm committed Oct 22, 2020
2 parents 5331102 + dc2d063 commit b4ec0f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
30 changes: 6 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,19 @@ python:
- "3.8"
- "3.9-dev"
env:
- DJANGO='django>=2.0,<2.1.0' TESTDB=sqlite
- DJANGO='django>=2.0,<2.1.0' TESTDB=postgres
- DJANGO='django>=2.1,<2.2.0' TESTDB=sqlite
- DJANGO='django>=2.1,<2.2.0' TESTDB=postgres
- DJANGO='django>=2.2,<3.0' TESTDB=sqlite
- DJANGO='django>=2.2,<3.0' TESTDB=postgres
- DJANGO='django>=3.0,<3.1.0' TESTDB=sqlite
- DJANGO='django>=3.0,<3.1.0' TESTDB=postgres
- DJANGO='django>=3.1,<3.2.0' TESTDB=sqlite
- DJANGO='django>=3.1,<3.2.0' TESTDB=postgres
- DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=sqlite
- DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=postgres

matrix:
exclude:
- python: "3.8"
env: DJANGO='django>=2.0,<2.1.0' TESTDB=sqlite
- python: "3.8"
env: DJANGO='django>=2.0,<2.1.0' TESTDB=postgres
- python: "3.8"
env: DJANGO='django>=2.1,<2.2.0' TESTDB=sqlite
- python: "3.8"
env: DJANGO='django>=2.1,<2.2.0' TESTDB=postgres
- python: "3.9-dev"
env: DJANGO='django>=2.0,<2.1.0' TESTDB=sqlite
- python: "3.9-dev"
env: DJANGO='django>=2.0,<2.1.0' TESTDB=postgres
- python: "3.9-dev"
env: DJANGO='django>=2.1,<2.2.0' TESTDB=sqlite
- python: "3.9-dev"
env: DJANGO='django>=2.1,<2.2.0' TESTDB=postgres

allow_failures:
- env: DJANGO='django>=3.1,<3.2.0' TESTDB=sqlite
- env: DJANGO='django>=3.1,<3.2.0' TESTDB=postgres
- env: DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=postgres
- env: DJANGO='https://github.com/django/django/archive/master.tar.gz' TESTDB=sqlite

Expand All @@ -52,8 +34,8 @@ before_install:
- if [ "$TESTDB" = "postgres" ]; then pip install -q psycopg2 ; fi
# command to install dependencies,
install:
# Install the right version of Django first
- pip install "$DJANGO"
- pip install -r requirements.txt -r requirements-dev.txt
# Install the right version of Django after we've installed wafer's version
- pip install "$DJANGO"
# command to run tests
script: NOSE_WITH_COVERAGE=1 NOSE_COVER_PACKAGE=wafer python manage.py test
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools import find_packages, setup

REQUIRES = [
'Django>=2.0, <3.0',
'Django>=2.2,<3.1',
'django-crispy-forms',
'django-nose',
'django-registration-redux',
Expand Down

0 comments on commit b4ec0f3

Please sign in to comment.