language: python
python:
  - "3.6"
# command to install dependencies
install:
  - python setup.py install
  - pip install pytest-cov
script:
  - pytest --cov-report=xml --cov=gnpy
after_success:
  - bash <(curl -s https://codecov.io/bash)

dist: xenial
language: python
python:
  - "3.6"
  - "3.7"
# command to install dependencies
install:
  - python setup.py install
  - pip install pytest-cov
script:
  - pytest --cov-report=xml --cov=gnpy
after_success:
  - bash <(curl -s https://codecov.io/bash)

Test on Python 3.7 as well
CI: Test on Python 3.7 as well

According to the Travis-CI docs, this requires switching to a newer base
OS image. It might not require an explicit pin like this in near future
as the default is, apparently, being migrated at this very time, but I
do not feel like working with a random rolling-update process of a
third-party service, thank you.
