language: cpp

compiler:
  - g++

before_script:
  - mkdir build
  - cd build
  - cmake ..

script: make

language: cpp

compiler:
    - gcc
    - clang
  install:
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
  addons:
    apt:
      sources:
      - ubuntu-toolchain-r-test
      packages:
      - gcc-4.8
      - g++-4.8
      - clang

before_script:
  - mkdir build
  - cd build
  - cmake ..

script: make

Change the complier to gcc 4.8 to support C++11 standard.
Change the complier to  gcc 4.8 to support C++11 standard.
