forked from VimPlug/jedi
A new version of the travis install script
This commit is contained in:
@@ -1,12 +1,34 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
echo "ENV" $JEDI_TEST_ENVIRONMENT
|
|
||||||
PYTHON=python-3.3
|
if [[ $JEDI_TEST_ENVIRONMENT == "33" ]]; then
|
||||||
|
VERSION=3.3
|
||||||
|
DOWNLOAD=1
|
||||||
|
fi
|
||||||
|
if [[ $JEDI_TEST_ENVIRONMENT == "35" ]]; then
|
||||||
|
VERSION=3.5
|
||||||
|
DOWNLOAD=1
|
||||||
|
fi
|
||||||
|
if [[ $JEDI_TEST_ENVIRONMENT == "36" ]]; then
|
||||||
|
VERSION=3.6
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z $VERSION ]]; then
|
||||||
|
echo "Environments should already be installed"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
PYTHON=python-$VERSION
|
||||||
|
|
||||||
# Check if the desired Python version already exists.
|
# Check if the desired Python version already exists.
|
||||||
$PYTHON --version && exit 0 || true
|
$PYTHON --version && exit 0 || true
|
||||||
|
|
||||||
# Otherwise download and install.
|
if [[ -z $DOWNLOAD ]]; then
|
||||||
wget https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/$PYTHON.tar.bz2
|
# Otherwise download and install.
|
||||||
sudo tar xjf $PYTHON.tar.bz2 --directory /
|
DOWNLOAD_NAME=python-$VERSION
|
||||||
python3.3 --version
|
wget https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/$DOWNLOAD_NAME.tar.bz2
|
||||||
ls /usr/bin
|
sudo tar xjf $DOWNLOAD_NAME.tar.bz2 --directory /
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Need to add the path in the end.
|
||||||
|
export PATH=$PATH:/opt/python/$VERSION/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user