#!/bin/sh
set -e
#check to see if miniconda folder is empty
if [ ! -d "$HOME/miniconda/envs/test-environment" ]; then
  wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
  chmod +x miniconda.sh
  ./miniconda.sh -b -p $HOME/miniconda
  export PATH="$HOME/miniconda/bin:$PATH"
  conda config --set always_yes yes --set changeps1 no
  conda config --add channels dsdale24
  conda update -q conda
  conda info -a
  conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION atlas numpy scipy pytest scikit-learn networkx
  source activate test-environment
  pip install -q coveralls coverage
else
  echo "Miniconda already installed."
fi

if [ ! -d "$HOME/downloads/praat" ]; then
  cd $HOME/downloads
  wget http://www.fon.hum.uva.nl/praat/praat5412_linux64.tar.gz
  tar -zxvf praat5412_linux64.tar.gz
else
  echo "Praat already installed."
fi

#!/bin/sh
set -e
#check to see if miniconda folder is empty
if [ ! -d "$HOME/miniconda/envs/test-environment" ]; then
  wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
  chmod +x miniconda.sh
  ./miniconda.sh -b -p $HOME/miniconda
  export PATH="$HOME/miniconda/bin:$PATH"
  conda config --set always_yes yes --set changeps1 no
  conda config --add channels dsdale24
  conda update -q conda
  conda info -a
  conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION atlas numpy scipy pytest scikit-learn networkx
  source activate test-environment
  pip install -q coveralls coverage
else
  echo "Miniconda already installed."
fi

if [ ! -d "$HOME/downloads/praat" ]; then
  cd $HOME/downloads
  latestVer=$(curl -s 'http://nginx.org/en/download.html' |
   grep -o 'praat.+_linux64\.tar\.gz')

  # Download.
  curl "http://www.fon.hum.uva.nl/praat/${latestVer}" > praat-latest.tar.gz
  tar -zxvf praat-latest.tar.gz
else
  echo "Praat already installed."
fi

Change travis script to find latest praat
Change travis script to find latest praat
