travis: Fix build errors due to change to non-system python

When virtualenv creates a environment with --python=python3, it was earlier
picking Python 3 from system at /usr/bin/python3. Due to recent changes in
Travis, now it picks up from Python 3.6.1 from /opt. This new Python does not
take into account system packages which are being installed via apt.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Sunil Mohan Adapa 2017-07-14 14:11:21 +05:30 committed by Joseph Nuthalpati
parent b6e6fdd134
commit 3b7b271293
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -14,7 +14,7 @@ before_install:
# Command to install dependencies
install:
- virtualenv --python=python3 --system-site-packages _venv
- virtualenv --python=/usr/bin/python3 --system-site-packages _venv
- source _venv/bin/activate
- pip install Django$DJANGO_VERSION
- pip install coverage==3.7