branches: {only: [master]}

sudo: false
language: python

matrix:
  include:
    - {env: TOXENV=style, python: "3.4"}
    - python: "2.7"
    - python: "3.4"
    - python: "3.5"
    - python: "3.6"

install:
  - pip install tox-travis
  - pip install codecov
  - pip install -U pip setuptools
  - python setup.py bdist_wheel

cache: pip

script: tox -v --installpkg dist/*.whl

after_success:
  - codecov -e TRAVIS_PYTHON_VERSION

branches: {only: [master]}

sudo: false
language: python
cache: pip

matrix:
  include:
    - {env: TOXENV=style, python: "3.4"}
    - python: "2.7"
    - python: "3.4"
    - python: "3.5"
    - python: "3.6"

install:
  - pip install tox-travis
  - pip install codecov
  - pip install -U pip setuptools
  - python setup.py bdist_wheel

script: tox -v --installpkg dist/*.whl

after_success:
  - codecov -e TRAVIS_PYTHON_VERSION

Move cache instruction to top
Travis: Move cache instruction to top
