language: c
sudo: false

branches:
  only:
    - master

cache: apt

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.8
    - gcc-5
    - gcc-6

matrix:
  include:
  - os: linux
    compiler: clang
  - os: linux
    compiler: gcc
  - os: linux
    compiler: gcc-4.8
  - os: linux
    compiler: gcc-5
  - os: linux
    compiler: gcc-6
  - os: osx
    compiler: clang
    osx_image: xcode6.2
  - os: osx
    compiler: clang
    osx_image: xcode7.3
  - os: osx
    compiler: clang
    osx_image: xcode8
  - os: osx
    env: INSTALL=gcc48
    compiler: gcc-4.8
  - os: osx
    env: INSTALL=gcc
    compiler: gcc-6
    osx_image: xcode8

before_install:
  - if [ "$TRAVIS_OS_NAME" == osx -a "$INSTALL" ] ; then brew install $INSTALL || true ; fi

script:
  - make
  - make test

language: c
dist: bionic

branches:
  only:
    - master

jobs:
  allow_failures:
  - os: osx
    compiler: gcc-9.2

matrix:
  include:
  - os: linux
    compiler: clang
  - os: linux
    compiler: gcc
  - os: osx
    compiler: clang
    osx_image: xcode11.3
  - os: osx
    env: INSTALL=gcc
    compiler: gcc-9.2
    osx_image: xcode11.3

before_install:
  - if [ "$TRAVIS_OS_NAME" == osx -a "$INSTALL" ] ; then brew install $INSTALL || true ; fi

script:
  - make
  - make test

Update and simplify CI configuration
Update and simplify CI configuration
