#!/bin/sh

if [ "$TRAVIS_OS_NAME" = "osx" ]; then
    wget http://repo.continuum.io/miniconda/Miniconda-3.7.0-MacOSX-x86_64.sh -O miniconda.sh;
else
    wget http://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh -O miniconda.sh;
fi

bash miniconda.sh -b

export PATH=$HOME/miniconda/bin:$PATH
conda update -n root conda-build --yes
conda install --yes conda-build jinja2 anaconda-client pip

# create myenv
conda create -y -n myenv python=$PYTHON_VERSION
conda install -y -n myenv nose pytest coverage pytest-cov
conda install -y -n myenv netcdf4 numpy nomkl

source activate myenv

# ambertools
# conda install libnetcdf
conda install ambertools-centos5 -c hainm --yes

# overwrite pytraj from AMBER
pip install pytraj --upgrade
