language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
before_install:
  - sudo apt-get install libnetcdf-dev libhdf5-serial-dev
  - 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
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm
install:
  - conda install --yes python=$TRAVIS_PYTHON_VERSION scipy matplotlib astropy
  - travis_retry pip install netCDF4
  - python setup.py install
script:
  - python tests/utests.py

language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
before_install:
  - sudo apt-get install libnetcdf-dev libhdf5-serial-dev
  - 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
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm
env:
  - WITH_NETCDF="yes"
  - WITH_NETCDF="no"
install:
  - conda install --yes python=$TRAVIS_PYTHON_VERSION scipy matplotlib astropy
  - if [[ WITH_NETCDF = "yes" ]] travis_retry pip install netCDF4
  - python setup.py install
script:
  - python tests/utests.py

Test with and without NetCDF
Test with and without NetCDF
