language: python
python:
  - 3.6
env:
  - CONFIG=TEST
  - CONFIG=PEP8
matrix:
  fast_finish: true
  allow_failures:
    - env: CONFIG=PEP8
install:
  - pip install -U pip
  - pip install Cython
  - pip install .[tests]
  - git clone --depth=1 https://github.com/atmtools/typhon-testfiles.git
  - export TYPHONTESTFILES=$PWD/typhon-testfiles
script:
  - |
    case ${CONFIG} in
      TEST)
        pytest --pyargs typhon
        ;;
      PEP8)
        pip install flake8
        flake8 --statistics
        ;;
    esac

dist: xenial  # required for Python >= 3.7
language: python
python:
  - 3.6
  - 3.7
env:
  - CONFIG=TEST
  - CONFIG=PEP8
matrix:
  fast_finish: true
  allow_failures:
    - env: CONFIG=PEP8
install:
  - pip install -U pip
  - pip install Cython
  - pip install .[tests]
  - git clone --depth=1 https://github.com/atmtools/typhon-testfiles.git
  - export TYPHONTESTFILES=$PWD/typhon-testfiles
script:
  - |
    case ${CONFIG} in
      TEST)
        pytest --pyargs typhon
        ;;
      PEP8)
        pip install flake8
        flake8 --statistics
        ;;
    esac

Add Python 3.7 to Travis build matrix
Add Python 3.7 to Travis build matrix

https://docs.travis-ci.com/user/languages/python/#python-37-and-higher
