Debian Codegraph @

ci/travis/before_script.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
4
5 # Install some custom requirements on OS X
6 # e.g. brew install pyenv-virtualenv
7 # See https://gist.github.com/Bouke/11261620
8 # and https://github.com/bincrafters/conan-bazel_installer
9
10 brew update || brew update
11 brew outdated pyenv || brew upgrade pyenv
12 brew install pyenv-virtualenv
13 eval "$(pyenv init -)"
14 eval "$(pyenv virtualenv-init -)"
15
16 pyenv install --list
17 pyenv install --skip-existing $PYTHON_VERSION
18 pyenv virtualenv $PYTHON_VERSION jpy-venv
19
20 else
21 # Install pyenv
22 # See https://github.com/pyenv/pyenv
23 git clone https://github.com/pyenv/pyenv.git $HOME/.pyenv
24 export PYENV_ROOT="$HOME/.pyenv"
25 export PATH="$PYENV_ROOT/bin:$PATH"
26 eval "$(pyenv init -)"
27
28 # Install pyenv virtualenv plugin
29 # See https://github.com/pyenv/pyenv-virtualenv
30 git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
31 eval "$(pyenv virtualenv-init -)"
32
33 # Create virtualenv from current Python
34 pyenv virtualenv jpy-venv
35 fi
36
37 pyenv rehash
38 pyenv activate jpy-venv
39 pip install wheel
40
41
42