# After changing this file, check it on:
#   http://lint.travis-ci.org/
language: python

sudo: false

matrix:
  include:
    - python: 2.7
    - python: 2.7
      env: LINT=true
    - python: 3.3
    - python: 3.4
      env: NOSE_WITH_COVERAGE=y NOSE_COVER_PACKAGE=metpy
    - python: 3.4
      env: LINT=true

notifications:
  email: false

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}/miniconda/bin:$PATH

install:
  - conda create --yes -n travis python=$TRAVIS_PYTHON_VERSION scipy numpy matplotlib nose flake8
  - source activate travis
  - if [[ $LINT == true ]]; then
      pip install pep8-naming;
    fi
  - if [[ $NOSE_WITH_COVERAGE == y ]]; then
      pip install coveralls;
    fi
  - python setup.py install

script:
  - if [[ $LINT == true ]]; then
      flake8 metpy;
    else
      nosetests;
    fi

after_success:
  - if [[ $NOSE_WITH_COVERAGE == y ]]; then
      coveralls;
    fi

# After changing this file, check it on:
#   http://lint.travis-ci.org/
language: python

sudo: false

env:
  global:
    - DEPENDS="numpy matplotlib scipy"

matrix:
  include:
    - python: 2.7
    - python: 2.7
      env: DEPENDS="numpy=1.8.0 matplotlib=1.4.0 scipy=0.13.3"
    - python: 2.7
      env: LINT=true
    - python: 3.3
    - python: 3.4
      env: NOSE_WITH_COVERAGE=y NOSE_COVER_PACKAGE=metpy
    - python: 3.4
      env: LINT=true

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}/miniconda/bin:$PATH

install:
  - conda create --yes -n travis python=$TRAVIS_PYTHON_VERSION scipy numpy matplotlib nose flake8
  - source activate travis
  - if [[ $LINT == true ]]; then
      pip install pep8-naming;
    fi
  - if [[ $NOSE_WITH_COVERAGE == y ]]; then
      pip install coveralls;
    fi
  - python setup.py install

script:
  - if [[ $LINT == true ]]; then
      flake8 metpy;
    else
      nosetests;
    fi

after_success:
  - if [[ $NOSE_WITH_COVERAGE == y ]]; then
      coveralls;
    fi

Update Travis to test with minimum requirements.
Update Travis to test with minimum requirements.
