notifications:
  email: false

language: python
python:
    - "2.7"
    - "3.3"

sudo: false

addons:
  apt:
    packages:
      - libhdf5-serial-dev
      - netcdf-bin
      - libnetcdf-dev

before_install:
    # Setup anaconda
    - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
    - chmod +x miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - conda update --yes conda

install:
    - conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy netcdf4 pandas matplotlib
    - pip install --upgrade pip
    - pip install -r requirements.txt
    - git submodule update --init --recursive

script:
    - export PYTHONPATH=`pwd`:$PYTHONPATH
    - flake8 parcels
    - flake8 tests
    - flake8 examples
    - python tests/test_peninsula.py --grid 20 10
    - py.test -v -s tests/
    - py.test -v -s examples/

notifications:
  email: false

language: python
python:
    - "2.7"
    - "3.4"

sudo: false

addons:
  apt:
    packages:
      - libhdf5-serial-dev
      - netcdf-bin
      - libnetcdf-dev

before_install:
    # Setup anaconda
    - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
    - chmod +x miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - conda update --yes conda

install:
    - conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy netcdf4 pandas matplotlib
    - pip install --upgrade pip
    - pip install -r requirements.txt
    - git submodule update --init --recursive

script:
    - export PYTHONPATH=`pwd`:$PYTHONPATH
    - flake8 parcels
    - flake8 tests
    - flake8 examples
    - python tests/test_peninsula.py --grid 20 10
    - py.test -v -s tests/
    - py.test -v -s examples/

Update to use Python3.4 to avoid Anaconda build clashes
Travis: Update to use Python3.4 to avoid Anaconda build clashes
