language: python

sudo: false

python:
  - "2.6"
  - "2.7"
  - "3.0"
  - "3.1"
  - "3.2"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"

cache:
  directories:
    - "$HOME/.pip-cache/"

install:
  - "pip install flake8"
  - "pip install coverage"
  - "pip install pytest-cov"
  - "pip install coveralls"

before_script:
  - "flake8 --max-line-length=140"

script:
  - "py.test --cov=."

after_success:
  - "coveralls"

language: python

sudo: false

python:
  - 2.6
  - 2.7
  - 3.2
  - 3.3
  - 3.4
  - 3.5
  - 3.6

install:
  - if [[ $TRAVIS_PYTHON_VERSION == 2.6 || $TRAVIS_PYTHON_VERSION == 3.2 || $TRAVIS_PYTHON_VERSION == 3.3 ]]; then
  -     pip install flake8==2.6.0
  - else
  -     pip install flake8
  - fi
  - pip install coverage
  - pip install pytest-cov
  - pip install coveralls

before_script:
  - flake8 --max-line-length=140

script:
  - py.test --cov=.

after_success:
  - coveralls

Remove some python versions and try conditional flake8 installs
Remove some python versions and try conditional flake8 installs
