Fix permissions of Python 3.6 on Travis

This commit is contained in:
micbou
2018-04-09 22:52:18 +02:00
committed by Dave Halter
parent 903bdf5fef
commit 286dd92e35
2 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,13 @@
#! /usr/bin/env bash
set -e
# 3.6 is already installed on Travis but not as root. This is problematic for
# our virtualenv tests because we require the Python used to create a virtual
# environment to be owned by root (or to be in a safe location which is not the
# case here).
sudo chown root: /opt/python/3.6/bin/python
sudo chown root: /opt/python/3.6.3/bin/python
if [[ $JEDI_TEST_ENVIRONMENT == "33" ]]; then
VERSION=3.3
DOWNLOAD=1
@@ -9,14 +16,6 @@ if [[ $JEDI_TEST_ENVIRONMENT == "35" ]]; then
VERSION=3.5
DOWNLOAD=1
fi
# 3.6 is already installed on Travis but not as root. This is problematic for
# our virtualenv tests because we require the Python used to create a virtual
# environment to be owned by root (or to be in a safe location which is not the
# case here).
if [[ $JEDI_TEST_ENVIRONMENT == "36" ]]; then
VERSION=3.6
DOWNLOAD=1
fi
if [[ -z $VERSION ]]; then
echo "Environments should already be installed"