language: c

compiler:
  - gcc
  - clang

env:
  matrix:
    - DEBUG=0
    - DEBUG=1

before_script:
  - if [ "$CC" = "gcc" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; sudo apt-get update -qq; sudo apt-get install -qq g++-4.8; export CC="gcc-4.8"; fi

script:
  - make all
  - make test

branches:
  except:
    - /^\d+-/


language: c

compiler:
  - gcc-7
  - clang

env:
  matrix:
    - DEBUG=0
    - DEBUG=1

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-7

script:
  - make all
  - make test

branches:
  except:
    - /^\d+-/


Update GCC version to 7 and modify install method
Update GCC version to 7 and modify install method
