From 0dddea534f8ddda63921c881cbedaa93c019f174 Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Wed, 31 Jan 2018 10:46:02 +0000 Subject: [PATCH] Fix django rest framework version when testing --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ef8a3d6..1999433 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ install: pip install -e .[test] pip install psycopg2 # Required for Django postgres fields testing pip install django==$DJANGO_VERSION - if [ $DJANGO_VERSION = 1.8 ]; then # DRF dropped 1.8 support at 3.7.0 + if (($(echo "$DJANGO_VERSION <= 1.9" | bc -l))); then # DRF dropped 1.8 and 1.9 support at 3.7.0 pip install djangorestframework==3.6.4 fi python setup.py develop