language: cpp

sudo: required

compiler:  
    - gcc

before_install:
    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
    - sudo apt-get -qq update
    - cmake --version

install:
    - sudo apt-get install -qq g++-4.8 libgtest-dev

before_script:  
    - export CXX="g++-4.8"
    - mkdir build
    - cd build
    - cmake ..

script:
    - make
    - ctest --output-on-error

language: cpp

sudo: required

compiler:  
    - gcc

before_install:
    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
    - sudo apt-get -qq update
    - cmake --version

install:
    - sudo apt-get install -qq g++-4.8 libgtest-dev
    - cd /usr/src/gtest && cmake CMakeLists.txt && make && cp *.a /usr/lib

before_script:  
    - export CXX="g++-4.8"
    - mkdir build
    - cd build
    - cmake ..

script:
    - make
    - ctest --output-on-error

Build and install gtest binaries in Travis
Build and install gtest binaries in Travis
