From 908743e30b180b15b59b0da05fe26b77a718a0d9 Mon Sep 17 00:00:00 2001 From: Robert Romano Date: Sun, 29 Nov 2020 14:21:19 -0800 Subject: [PATCH] fix conditional pip install for python 2.7 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index eb627bc..bc48d3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ env: install: - pip install -q $DJANGO - pip install codecov -# - "if python --version 2>&1 | grep -q ' 2\.7\.'; then pip install ipaddress ; fi" + - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install ipaddress; fi script: - PYTHONPATH=$PYTHONPATH:$PWD coverage run `which django-admin.py` test adminrestrict --settings=adminrestrict.test_settings