language: python
python:
  - 2.7
  - 3.2
  - 3.3
  - 3.4
  - 3.5
  - 3.6
  - pypy-5.3.1
  - pypy3
install:
  - pip install flake8
  - if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install 'coverage<4.0.0'; else pip install coverage; fi
  - pip install coveralls
  - pip install mock
  - pip install nose
script:
  - nosetests tests --with-coverage --cover-package=git_edit_index --cover-erase
  - flake8 --ignore=E501 git-edit-index tests/git_edit_index_tests.py setup.py
after_success:
  - coveralls

language: python
python:
  - 2.7
  - 3.2
  - 3.3
  - 3.4
  - 3.5
  - 3.6
  - pypy-5.3.1
  - pypy3
install:
  - if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install 'flake8<3.5.0'; else pip install flake8; fi
  - if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install 'coverage<4.0.0'; else pip install coverage; fi
  - pip install coveralls
  - pip install mock
  - pip install nose
script:
  - nosetests tests --with-coverage --cover-package=git_edit_index --cover-erase
  - flake8 --ignore=E501 git-edit-index tests/git_edit_index_tests.py setup.py
after_success:
  - coveralls

Fix run of flake8 in Travis CI for Python 3.2.
Fix run of flake8 in Travis CI for Python 3.2.

We need to use an older version when installing flake8 under Python 3.2 as it
fails with the following error when using the latest version:

    File "/home/travis/virtualenv/python3.2.6/lib/python3.2/site-packages/flake8/options/config.py", line 63
      if isinstance(files, (str, type(u''))):
                                      ^
    SyntaxError: invalid syntax

With 3.4.1, it should run fine.
