os: linux
sudo: required
dist: trusty
group: stable
cache: 
  - apt
env:
  global:
    - HOME=/home/travis
before_script:
  - sudo apt-get update -qq
  - sudo apt-get remove -y postgresql*
  - sudo apt-get upgrade -qq --allow-unauthenticated
  - rsync -av ./ ~/
script:
  - export PATH=/usr/bin:$PATH
  - bash -eux -c "$(curl -SsfL https://git.io/ros-kinetic-desktop)"
  - source ~/.bashrc
  - mkdir -p $HOME/catkin_ws/src && cd $HOME/catkin_ws && catkin_init_workspace src && echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
  - catkin_make  && source ~/.bashrc
  - test `git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* //'` = "master" && bash -exv -c "$(curl -SsfL https://git.io/raspimouse-sim-installer)" || bash -exv -c "$(cat ~/install.bash)"

os: linux
sudo: required
group: stable
cache: 
  - apt
matrix:
  include:
    - dist: trusty
    - dist: xenial
    - dist: bionic
env:
  global:
    - HOME=/home/travis
before_script:
  - sudo apt-get update -qq
  - sudo apt-get remove -y postgresql*
  - sudo apt-get upgrade -qq --allow-unauthenticated
  - rsync -av ./ ~/
script:
  - export PATH=/usr/bin:$PATH
  - bash -eux -c "$(curl -SsfL https://git.io/ros-kinetic-desktop)"
  - source ~/.bashrc
  - mkdir -p $HOME/catkin_ws/src && cd $HOME/catkin_ws && catkin_init_workspace src && echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
  - catkin_make  && source ~/.bashrc
  - test `git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* //'` = "master" && bash -exv -c "$(curl -SsfL https://git.io/raspimouse-sim-installer)" || bash -exv -c "$(cat ~/install.bash)"

Add Xenial and Bionic to test
Add Xenial and Bionic to test
