Experiment with travis and installing packages differently

This commit is contained in:
Dave Halter
2017-12-30 23:08:32 +01:00
parent 9b1d3ff207
commit 39a456be41
2 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
language: python
sudo: false
sudo: true
python:
- 2.7
- 3.3
@@ -30,6 +30,7 @@ matrix:
install:
- pip install --quiet tox-travis
script:
- ./travis_install.sh
- tox
after_script:
- if [ $TOXENV == "cov" ]; then

10
travis_install.sh Normal file
View File

@@ -0,0 +1,10 @@
set -e
echo "ENV" $JEDI_TEST_ENVIRONMENT
PYTHON=python-3.3
# Check if the desired Python version already exists.
$PYTHON --version && exit 0 || true
# Otherwise download and install.
wget https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/$PYTHON.tar.bz2
sudo tar xjf $PYTHON.tar.bz2 --directory /