sudo: false
language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "pypy"
  - "pypy3"
matrix:
  # pypy3 (as of 2.4.0) has a wacky arity issue in its source loader. Allow it
  # to fail until we can test on, and require, PyPy3.3+. See invoke#358.
  allow_failures:
    - python: pypy3
  # Disabled per https://github.com/travis-ci/travis-ci/issues/1696
  # fast_finish: true
install:
  - pip install -r dev-requirements.txt
script:
  # Run tests w/ coverage first, so it uses the local-installed copy.
  # (If we do this after the below installation tests, coverage will think
  # nothing got covered!)
  - inv coverage --report=xml
  # TODO: tighten up these install test tasks so they can be one-shotted
  - inv travis.test-installation --package=patchwork --sanity="inv sanity"
  - inv travis.test-packaging --package=patchwork --sanity="inv sanity"
  - inv docs --nitpick
  - flake8
# TODO: after_success -> codecov, once coverage sucks less XD

sudo: false
language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7-dev"
  - "pypy"
  - "pypy3"
matrix:
  # pypy3 (as of 2.4.0) has a wacky arity issue in its source loader. Allow it
  # to fail until we can test on, and require, PyPy3.3+. See invoke#358.
  allow_failures:
    - python: pypy3
  # Disabled per https://github.com/travis-ci/travis-ci/issues/1696
  # fast_finish: true
install:
  - pip install -r dev-requirements.txt
script:
  # Run tests w/ coverage first, so it uses the local-installed copy.
  # (If we do this after the below installation tests, coverage will think
  # nothing got covered!)
  - inv coverage --report=xml
  # TODO: tighten up these install test tasks so they can be one-shotted
  - inv travis.test-installation --package=patchwork --sanity="inv sanity"
  - inv travis.test-packaging --package=patchwork --sanity="inv sanity"
  - inv docs --nitpick
  - flake8
# TODO: after_success -> codecov, once coverage sucks less XD

Test on Python 3.7 pre-release.
Test on Python 3.7 pre-release.

This should catch any high level problems in fabric, invoke etc
