language: python
sudo: false
addons:
  apt:
    packages:
      - gfortran
      - gcc
notifications:
  email: false
python:
  - "2.7"
# command to install dependencies
install:
  # 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.
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
    else
      wget http://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

  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy pandas netCDF4 pytest pip setuptools=18.4=py27_0 gdal paramiko matplotlib pillow shapely statsmodels h5py
  - source activate test-environment
  - pip install patool
  - pip install coverage
  - pip install pykdtree
  - python setup.py install

# command to run tests
script: 
  - python setup.py test

language: python
sudo: false
addons:
  apt:
    packages:
      - gfortran
      - gcc
notifications:
  email: false
python:
  - "2.7"
# command to install dependencies
install:
  # 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.
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
    else
      wget http://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

  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy pandas netCDF4 pytest pip setuptools=18.4=py27_0 gdal paramiko matplotlib pillow shapely statsmodels h5py cython
  - source activate test-environment
  - pip install patool
  - pip install coverage
  - pip install pykdtree
  - pip install pyresample
  - pip install pytesmo
  - python setup.py install

# command to run tests
script: 
  - python setup.py test

Add cython pyresample and pytesmo to explicitly installed pkgs.
CI: Add cython pyresample and pytesmo to explicitly installed pkgs.
