https://github.com/dhuppenkothen/entrofy
Raw File
Tip revision: 838973f55b4db762ff5fc7729f3add5733955c7b authored by Daniela Huppenkothen on 01 December 2017, 18:40:06 UTC
Included prefixes in construct_mapper function, added tests, updated notebook
Tip revision: 838973f
.travis_dependencies.sh
#!/bin/sh

ENV_NAME="test-environment"
set -e

conda_create ()
{

    hash -r
    conda config --set always_yes yes --set changeps1 no
    conda update -q conda
    conda config --add channels pypi
    conda info -a
    deps='six nose coverage pip numpy scipy pandas matplotlib'

    conda create -q -n $ENV_NAME "python=$TRAVIS_PYTHON_VERSION" $deps
}

src="$HOME/env/miniconda$TRAVIS_PYTHON_VERSION"
if [ ! -d "$src" ]; then
    mkdir -p $HOME/env
    pushd $HOME/env
    
        # Download miniconda packages
        wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh;

        # Install both environments
        bash miniconda.sh -b -p $src

        export PATH="$src/bin:$PATH"
        conda_create 

        source activate $ENV_NAME

        pip install python-coveralls
            
        source deactivate
    popd
else
    echo "Using cached dependencies"
fi
back to top