summaryrefslogtreecommitdiff
path: root/_travis
diff options
context:
space:
mode:
authorJohn Vandenberg <jayvdb@gmail.com>2016-07-29 07:45:13 +0700
committerJohn Vandenberg <jayvdb@gmail.com>2016-07-29 16:36:10 +0700
commite7358af5ddac7787c1f9b2db39f79eb595d63e4c (patch)
tree0d092c4878f2a663072770f259f3a8552ab12a91 /_travis
parent56cf4d1ecadb0a946dd708be37a9c0e7936cccc4 (diff)
downloadurllib3-e7358af5ddac7787c1f9b2db39f79eb595d63e4c.tar.gz
Use Travis supplied PyPy 5.3
Replaces custom PyPy 4.0.1 build with Travis supplied PyPy 5.3, removing the need for two bash Travis specific scripts. Improve fetch_gae_sdk.py to simplify the invocation in .travis.yml
Diffstat (limited to '_travis')
-rw-r--r--_travis/fetch_gae_sdk.py8
-rwxr-xr-x_travis/travis-install.sh21
-rwxr-xr-x_travis/travis-run.sh11
3 files changed, 7 insertions, 33 deletions
diff --git a/_travis/fetch_gae_sdk.py b/_travis/fetch_gae_sdk.py
index 9eb4e1f9..f7788659 100644
--- a/_travis/fetch_gae_sdk.py
+++ b/_travis/fetch_gae_sdk.py
@@ -67,7 +67,13 @@ def main(argv):
if len(argv) > 2:
print('Usage: {0} [<destination_dir>]'.format(argv[0]))
return 1
- dest_dir = argv[1] if len(argv) > 1 else '.'
+ if len(argv) > 1:
+ dest_dir = argv[1]
+ else:
+ try:
+ dest_dir = os.path.dirname(os.environ['GAE_PYTHONPATH'])
+ except IndexError:
+ dest_dir = '.'
if not os.path.exists(dest_dir):
os.makedirs(dest_dir)
diff --git a/_travis/travis-install.sh b/_travis/travis-install.sh
deleted file mode 100755
index ba44c612..00000000
--- a/_travis/travis-install.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-set -ev
-
-pip install tox==2.1.1
-
-# Workaround Travis' old PyPy release. If Travis updates, we can remove this
-# code.
-if [[ "${TOXENV}" == pypy* ]]; then
- git clone https://github.com/yyuu/pyenv.git ~/.pyenv
- PYENV_ROOT="$HOME/.pyenv"
- PATH="$PYENV_ROOT/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv install pypy-4.0.1
- pyenv global pypy-4.0.1
- pyenv rehash
-fi
-
-if [[ "${TOXENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then
- python _travis/fetch_gae_sdk.py `dirname ${GAE_PYTHONPATH}`
-fi
diff --git a/_travis/travis-run.sh b/_travis/travis-run.sh
deleted file mode 100755
index c044a8d4..00000000
--- a/_travis/travis-run.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-set -ev
-
-if [[ "${TOXENV}" == "pypy" ]]; then
- PYENV_ROOT="$HOME/.pyenv"
- PATH="$PYENV_ROOT/bin:$PATH"
- eval "$(pyenv init -)"
-fi
-
-tox \ No newline at end of file