language: c
# On Ubuntu, run in Travis Container
sudo: false
# Use Ubuntu 16.04 Xenial (for Clang 7)
dist: xenial
# helps to use actual GCC on OSX (not Clang!) and Clang version 6
osx_image: xcode10
# build matrix with both OSes and Compilers
os:
  - linux
  - osx
compiler:
  - clang
  - gcc
cache:
  - ccache
addons:
  apt:
    packages:
      - check
# branches safelist
branches:
  only:
    - master
    - develop
    - /^test\/.*$/
    - /^feature\/.*$/
before_install:
  # fix for homebrew failling on Travis-CI
  - if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$CC" == "gcc" ]; then brew update; fi
install:
  # install gcc-5 and check on OSX
  - if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$CC" == "gcc" ]; then brew install gcc5 check; fi
before_script:
  # override $CC to use gcc-5 on OSX
  - if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$CC" == "gcc" ]; then export CC="gcc-5"; fi
  - cmake .
script:
  - make -j -k
  - ctest -V

language: c
# On Ubuntu, run in Travis Container
sudo: false
# Use Ubuntu 16.04 Xenial (for Clang 7)
dist: xenial
# helps to use actual GCC on OSX (not Clang!) and Clang version 6
osx_image: xcode10
# build matrix with both OSes and Compilers
os:
  - linux
  - osx
compiler:
  - clang
  - gcc
cache:
  - ccache
addons:
  apt:
    packages:
      - check
  homebrew:
    packages:
      - gcc5
      - check
# branches safelist
branches:
  only:
    - master
    - develop
    - /^test\/.*$/
    - /^feature\/.*$/
before_script:
  # override $CC to use gcc-5 on OSX
  - if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$CC" == "gcc" ]; then export CC="gcc-5"; fi
  - cmake .
script:
  - make -j -k
  - ctest -V

Change OSX package installation to use addons feature
Change OSX package installation to use addons feature
