language: python
env:
matrix:
- PYTHON_VERSION="2.7"
- PYTHON_VERSION="2.6"
install:
  - sudo apt-get update
  # You may want to periodically update this, although the conda update
  # conda line below will keep everything up-to-date.  We do this
  # conditionally because it saves us some downloading if the version is
  # the same.
  - deactivate
  - wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
  - 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

  # Conda dependencies
  - conda create -q -n test-environment python="$PYTHON_VERSION" scipy gdal netcdf4 nose matplotlib
  - source activate test-environment
  # python 2.6 doesn't have argparse by default
  - if [[ "$PYTHON_VERSION" == "2.6" ]]; then
      conda install argparse
    fi
  - python setup.py install

script:
  # Your test script goes here
  - python runtests.py
