language: python

python:
  - "2.7"

notifications:
  webhooks:
    urls:
        - https://webhooks.gitter.im/e/a71c577e60af59700bb7
    on_success: change  # options: [always|never|change]
    on_failure: change  # options: [always|never|change]
    on_start: false 

# Setup anaconda
before_install:
  - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=/home/travis/miniconda/bin:$PATH
  - conda update --yes conda
  # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm


install:
  # install deps
  - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose
  # install channelworm
  - pip install --allow-all-external -r requirements.txt

script:
  - py.test .


language: python

python:
  - "2.7"

notifications:
  webhooks:
    urls:
        - https://webhooks.gitter.im/e/a71c577e60af59700bb7
    on_success: change  # options: [always|never|change]
    on_failure: change  # options: [always|never|change]
    on_start: false 

# Setup anaconda
install:
  - sudo apt-get update
  # We do this conditionally because it saves us some downloading if the
  # version is the same.
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
    else
      wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
    fi
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda
  # Useful for debugging any issues with conda
  - conda info -a

  # install deps
  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose
  - source activate test-environment
  - python setup.py install
  # install channelworm
  - pip install --allow-all-external -r requirements.txt

script:
  - py.test .


Update Miniconda setup for Travis-CI
Update Miniconda setup for Travis-CI
