Improved travis tests. Added Django==1.11 tests

This commit is contained in:
Syrus Akbary 2017-04-15 01:11:36 -07:00
parent 5833cb83be
commit b30b40e353

View File

@ -25,6 +25,7 @@ install:
pip install -e .[test] pip install -e .[test]
pip install psycopg2 # Required for Django postgres fields testing pip install psycopg2 # Required for Django postgres fields testing
pip install django==$DJANGO_VERSION pip install django==$DJANGO_VERSION
pip install django-filter==$DJANGO_FILTER_VERSION
python setup.py develop python setup.py develop
elif [ "$TEST_TYPE" = lint ]; then elif [ "$TEST_TYPE" = lint ]; then
pip install flake8 pip install flake8
@ -45,18 +46,20 @@ after_success:
fi fi
env: env:
matrix: matrix:
- TEST_TYPE=build DJANGO_VERSION=1.10 - TEST_TYPE=build DJANGO_VERSION=1.11 DJANGO_FILTER_VERSION=1.0.2
matrix: matrix:
fast_finish: true fast_finish: true
include: include:
- python: '2.7' - python: '2.7'
env: TEST_TYPE=build DJANGO_VERSION=1.6 env: TEST_TYPE=build DJANGO_VERSION=1.6 DJANGO_FILTER_VERSION=1.0.0
- python: '2.7' - python: '2.7'
env: TEST_TYPE=build DJANGO_VERSION=1.7 env: TEST_TYPE=build DJANGO_VERSION=1.7 DJANGO_FILTER_VERSION=1.0.0
- python: '2.7' - python: '2.7'
env: TEST_TYPE=build DJANGO_VERSION=1.8 env: TEST_TYPE=build DJANGO_VERSION=1.8 DJANGO_FILTER_VERSION=1.0.2
- python: '2.7' - python: '2.7'
env: TEST_TYPE=build DJANGO_VERSION=1.9 env: TEST_TYPE=build DJANGO_VERSION=1.9 DJANGO_FILTER_VERSION=1.0.2
- python: '2.7'
env: TEST_TYPE=build DJANGO_VERSION=1.10 DJANGO_FILTER_VERSION=1.0.2
- python: '2.7' - python: '2.7'
env: TEST_TYPE=lint env: TEST_TYPE=lint
deploy: deploy: