language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "nightly"

env:
  - FLAKE8_VERSION=">=3.0.3"

matrix:
  include:
    - python: "2.6"
      env: FLAKE8_VERSION=">=2.6,<3"
    - python: "3.3"
      env: FLAKE8_VERSION=">=2.6,<3"
    - python: "2.7"
      env: FLAKE8_VERSION=">=2.6,<3"
    - python: "3.5"
      env: FLAKE8_VERSION=">=2.6,<3"

script:
  - pip install flake8$FLAKE8_VERSION
  - python setup.py develop
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.6" ]]; then pip install unittest2 ; fi
  - python setup.py test
  - if [[ "$TRAVIS_PYTHON_VERSION" != "nightly" ]]; then coverage run setup.py test ; fi

notifications:
  email: false
before_install:
  - pip install codecov
after_success:
  - codecov

language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7"
  - "3.8"
  - "nightly"

env:
  - FLAKE8_VERSION=">=3.0.3"

matrix:
  include:
    - python: "2.7"
      env: FLAKE8_VERSION=">=2.6,<3"
    - python: "3.5"
      env: FLAKE8_VERSION=">=2.6,<3"

script:
  - pip install flake8$FLAKE8_VERSION
  - python setup.py develop
  - python setup.py test
  - if [[ "$TRAVIS_PYTHON_VERSION" != "nightly" ]]; then coverage run setup.py test ; fi

notifications:
  email: false
before_install:
  - pip install codecov
after_success:
  - codecov

Update tested versions on Travis
Update tested versions on Travis

Python 2.6 and Python 3.3 are not supported by Travis anymore at all. Instead
test Python 3.7 and 3.8.
