branches: {only: [master, test]}

sudo: false
language: python
cache: pip

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

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

branches: {only: [master, test]}

sudo: false
language: python
cache: pip

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

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

Reorder Python versions in the build matrix
Travis: Reorder Python versions in the build matrix

Because PyPy build takes the longest time, start it first.  This should
make the overall testing faster, because builds are started in parallel.
