language: python
python:
  - 3.6
env:
  - CONFIG=TEST
  - CONFIG=PEP8
matrix:
  fast_finish: true
  allow_failures:
    - env: CONFIG=PEP8
install:
  - pip install .[tests]
script:
  - |
    case ${CONFIG} in
      TEST)
        pytest
        ;;
      PEP8)
        pip install flake8
        flake8 --statistics
        ;;
    esac

language: python
python:
  - 3.6
env:
  - CONFIG=TEST
  - CONFIG=PEP8
matrix:
  fast_finish: true
  allow_failures:
    - env: CONFIG=PEP8
install:
  - pip install .[tests]
script:
  - |
    case ${CONFIG} in
      TEST)
        pytest --pyargs typhon
        ;;
      PEP8)
        pip install flake8
        flake8 --statistics
        ;;
    esac

Make pytest run against the installed typhon.
Make pytest run against the installed typhon.

pytest was wrongly called on the source tree. We want to actually test
the installed version. This helps to detect issues with missing files
in MANIFEST.in.
