language: cpp

addons:
  apt:
    packages:
      - libgtest-dev

install:
  - export INITIAL_DIR=$PWD
  - wget --no-check-certificate https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz -O /tmp/cmake.tar.gz
  - tar -xvf /tmp/cmake.tar.gz
  - export PATH=$PWD/cmake-3.6.2-Linux-x86_64/bin/:$PATH

matrix:
  include:
    - compiler: gcc
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-5
      env: COMPILER=g++-5
    - compiler: clang
      env: COMPILER=clang

branches:
  only:
  - master

before_script:
  - mkdir build
  - cd build
  - cmake -DCMAKE_CXX_COMPILER=$COMPILER ..

script: make all test

language: cpp

install:
  - export INITIAL_DIR=$PWD
  - wget --no-check-certificate https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz -O /tmp/cmake.tar.gz
  - tar -xvf /tmp/cmake.tar.gz
  - export PATH=$PWD/cmake-3.6.2-Linux-x86_64/bin/:$PATH

matrix:
  include:
    - compiler: gcc
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - libgtest-dev
            - g++-5
      env: COMPILER=g++-5
    - compiler: clang
      addons:
        apt:
          packages:
            - libgtest-dev
      env: COMPILER=clang

branches:
  only:
  - master

before_script:
  - mkdir build
  - cd build
  - cmake -DCMAKE_CXX_COMPILER=$COMPILER ..

script: make all test

Add libgtest to the matrix
Add libgtest to the matrix
