mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-07 13:02:27 +02:00
26 lines
863 B
Bash
26 lines
863 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [ -d "$HOME/miniconda3" ] && [ -e "$HOME/miniconda3/bin/conda" ]; then
|
||
|
echo "Miniconda install already present from cache: $HOME/miniconda3"
|
||
|
rm -rf $HOME/miniconda3/envs/hosts # Just in case...
|
||
|
else
|
||
|
echo "Installing Miniconda..."
|
||
|
rm -rf $HOME/miniconda3 # Just in case...
|
||
|
|
||
|
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
||
|
wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
|
||
|
else
|
||
|
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
|
||
|
fi
|
||
|
|
||
|
bash miniconda.sh -b -p "$HOME/miniconda3" || exit 1
|
||
|
fi
|
||
|
|
||
|
echo "Configuring Miniconda..."
|
||
|
conda config --set ssl_verify false || exit 1
|
||
|
conda config --set always_yes true --set changeps1 false || exit 1
|
||
|
|
||
|
echo "Updating Miniconda"
|
||
|
conda update --all
|
||
|
conda info -a || exit 1
|