sudo: false
language: python
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - pypy
  - pypy3
install:
  - pip install flake8
  - pip install --upgrade pytest # needed for cases where there is already an old pytest installed
script:
  - flake8 $(git ls-files mechanicalsoup/'*.py') example.py
  - python setup.py test
after_success:
  - bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'

sudo: false
language: python
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - pypy
  - pypy3
install:
  - pip install flake8
  - pip install --upgrade pytest # needed for cases where there is already an old pytest installed
  - pip install pytest-cov       # needed for the codecov uploader
script:
  - flake8 $(git ls-files mechanicalsoup/'*.py') example.py
  - python setup.py test
after_success:
  - bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'

Fix Travis-CI coverage report uploading
Fix Travis-CI coverage report uploading

The `coverage` executable needs to exist in the environment for the
Codecov uploader to work correctly. Therefore, it is insufficient to
install `pytest-cov` (which provides `coverage`) with `tests_require`
in setup.py.

This fixes the "Python coveragepy not found" error output by the
uploader after the change to the Travis-CI environment in b3232dd.
