Debian Codegraph @

devtools/travis-ci/before_install.sh

raw symbols SCIP
1 # Temporarily change directory to $HOME to install software
2 pushd .
3 cd $HOME
4
5 # Install Miniconda
6 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
7 # Make OSX md5 mimic md5sum from linux, alias does not work
8 md5sum () {
9 command md5 -r "$@"
10 }
11 MINICONDA=Miniconda3-latest-MacOSX-x86_64.sh
12 else
13 MINICONDA=Miniconda3-latest-Linux-x86_64.sh
14 export PYTHON_VER=$TRAVIS_PYTHON_VERSION
15 fi
16 MINICONDA_HOME=$HOME/miniconda
17 MINICONDA_MD5=$(wget -qO- https://repo.anaconda.com/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')
18 wget -q https://repo.anaconda.com/miniconda/$MINICONDA
19 if [[ $MINICONDA_MD5 != $(md5sum $MINICONDA | cut -d ' ' -f 1) ]]; then
20 echo "Miniconda MD5 mismatch"
21 exit 1
22 fi
23 bash $MINICONDA -b -p $MINICONDA_HOME
24
25 # Configure miniconda
26 export PIP_ARGS="-U"
27 export PATH=$MINICONDA_HOME/bin:$PATH
28
29 conda config --set always_yes yes --set changeps1 no
30 conda update --q conda
31
32 # Restore original directory
33 popd