mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-20 08:28:26 +08:00
Fix permissions of Python 3.6 on Travis
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user