dist: trusty
sudo: false
language: python
python:
  - '2.7'
  - '3.4'
  - '3.5'
  - '3.6'
cache: pip
before_install:
  - pip install 'flake8>=3.5.0'
  - flake8
install:
  - pip install --upgrade pip setuptools wheel
  - pip install -r requirements.txt
  - pip install -e .
script:
  - pytest --cov=mws
after_success:
  - pip install codecov
  - codecov

dist: trusty
sudo: false
language: python
python:
  - '2.7'
  - '3.4'
  - '3.5'
  - '3.6'
cache: pip
install:
  - pip install --upgrade pip setuptools wheel
  - pip install -r requirements.txt
  - pip install -e .
script:
  - pytest --cov=mws
after_success:
  - pip install 'flake8>=3.5.0'
  - flake8
  - pip install codecov
  - codecov

Move flake8 checking after pytest calls
Move flake8 checking after pytest calls

A current PR is using `enum`, which was added in Py3.4. That should have produced an error for a missing module in Py2.7 testing, but `flake8` loads `enum34` as a dependency into the environment first. This contaminates the test suite prior to running tests, hiding what should be an error.