summaryrefslogtreecommitdiff
path: root/.ci/travis-before-install.sh
blob: 13aaf32578c8e141c7458ea633393c5aa2afbce6 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -e -x

if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
    brew update >/dev/null
    brew upgrade pyenv
    eval "$(pyenv init -)"

    if ! (pyenv versions | grep "${PYTHON_VERSION}$"); then
        pyenv install ${PYTHON_VERSION}
    fi

    pyenv global ${PYTHON_VERSION}
    pyenv rehash
fi