diff options
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-x | scripts/install.sh | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index e1ed5c5..0ef7ad2 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -16,18 +16,16 @@ set -ev -pip install --upgrade pip setuptools tox coveralls - -# App Engine tests require the App Engine SDK. -if [[ "${TOX_ENV}" == "gae" || "${TOX_ENV}" == "cover" ]]; then - pip install gcp-devrel-py-tools - gcp-devrel-py-tools download-appengine-sdk `dirname ${GAE_PYTHONPATH}` +pip install tox +if [[ "${TOX_ENV}" == "pypy" ]]; then + git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv + PYENV_ROOT="${HOME}/.pyenv" + PATH="${PYENV_ROOT}/bin:${PATH}" + eval "$(pyenv init -)" + pyenv install pypy-2.6.0 + pyenv global pypy-2.6.0 fi -# Travis ships with an old version of PyPy, so install at least version 2.6. -if [[ "${TOX_ENV}" == "pypy" ]]; then - if [ ! -d "${HOME}/.pyenv/bin" ]; then - git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv - fi - ${HOME}/.pyenv/bin/pyenv install --skip-existing pypy-2.6.0 +if [[ "${TOX_ENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then + python scripts/fetch_gae_sdk.py `dirname ${GAE_PYTHONPATH}` fi |