os: linux
language: python

addons:
  apt:
    packages:
      libdbus-glib-1-dev

branches:
    only: master

matrix:
    include:
        - env: TASK=lint
          python: "3.4" # dbus-python does not compile on higher versions
        - env: TASK=fmt-travis
          python: "3.6" # Run fmt task on newest version currently available

script: make -f Makefile $TASK

os: linux
dist: xenial
language: python
python: "3.5" # dbus-python can not be built on higher versions of Python

addons:
  apt:
    packages:
      libdbus-glib-1-dev

branches:
    only: master

matrix:
    - TASK=lint
    - TASK=fmt-travis

script: make -f Makefile $TASK

Use xenial distribution for Travis CI
Use xenial distribution for Travis CI

This allows moving the required version of Python from 3.4, which has
reached EOL, and which pip now deprecates, to 3.5.

Simplify the test matrix, since there is no obvious benefit to having
it be more complicated.

Signed-off-by: mulhern <7b51bcf507bcd7afb72bf8663752c0ddbeb517f6@redhat.com>
