albarji/proxTV

View on GitHub
.travis/installconda.sh

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash

set -e
set -v

# System config steps
if [ "$TRAVIS_OS_NAME" = linux ]; then
    sudo apt-get update
    sudo apt-get install build-essential
    sudo apt-get autoremove -y
    sudo apt-get clean
    MINICONDAVERSION="Linux"
else
    brew update;
    MINICONDAVERSION="MacOSX"
fi

# Install miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-${MINICONDAVERSION}-x86_64.sh -O miniconda.sh
bash miniconda.sh -b
export PATH="$HOME/miniconda3/bin:$PATH"
rm miniconda.sh
conda config --set always_yes yes --set changeps1 no
conda update -q conda

# Create environment with specific python version
conda create -n testenv python=${TRAVIS_PYTHON_VERSION}
source activate testenv
pip install nose coveralls