mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Fix permissions of Python 3.6 on Travis
This commit is contained in:
@@ -45,6 +45,8 @@ before_install:
|
||||
# something twice, but it doesn't really matter, because they are appended.
|
||||
- export PATH=$PATH:/opt/python/3.3/bin
|
||||
- export PATH=$PATH:/opt/python/3.5/bin
|
||||
# 3.6 was not installed manually, but already is on the system. However
|
||||
# it's not on path (unless 3.6 is selected).
|
||||
- export PATH=$PATH:/opt/python/3.6/bin
|
||||
install:
|
||||
- pip install --quiet tox-travis
|
||||
|
||||
@@ -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