language: cpp

compiler: 
 - clang
 - gcc

notifications:
  on_success: change
  on_failure: always
  template:
   - "it's %{author}'s turn to pay the next round of drinks for the massacre he caused in %{repository}: %{build_url}"

env:
 - CMAKE_OPTIONS="-DGOOGLE_MOCK_SOURCE_DIR=`pwd`/3Hren/blackhole/gmock-1.6.0"

before_install:
 - sudo apt-get update -qq
 - wget http://googlemock.googlecode.com/files/gmock-1.6.0.zip && unzip gmock-1.6.0.zip
 - cd gmock-1.6.0 && mkdir build && cd build && cmake .. && make
 - sudo cp -r ../include/gmock/ /usr/include/
 - sudo cp -r ../gtest/include/gtest/ /usr/include/
 - sudo cp libgmock.a /usr/lib/
 - sudo cp gtest/libgtest.a /usr/lib/
 - cd ../..

install:
 - sudo apt-get install -qq cdbs cmake libboost-dev libboost-filesystem-dev

before_script:
 - mkdir build && cd build

script:
 - cmake -DENABLE_TESTING=ON $CMAKE_OPTIONS .. && make && make test 
 - ctest --verbose

language: cpp

compiler: 
 - gcc

notifications:
  on_success: change
  on_failure: always
  template:
   - "it's %{author}'s turn to pay the next round of drinks for the massacre he caused in %{repository}: %{build_url}"

env:
 - CMAKE_OPTIONS="-DGOOGLE_MOCK_SOURCE_DIR=`pwd`/3Hren/blackhole/gmock-1.6.0"

before_install:
 - sudo apt-get update -qq
 - wget http://googlemock.googlecode.com/files/gmock-1.6.0.zip && unzip gmock-1.6.0.zip
 - cd gmock-1.6.0 && mkdir build && cd build && cmake .. && make
 - sudo cp -r ../include/gmock/ /usr/include/
 - sudo cp -r ../gtest/include/gtest/ /usr/include/
 - sudo cp libgmock.a /usr/lib/
 - sudo cp gtest/libgtest.a /usr/lib/
 - cd ../..

install:
 - sudo apt-get install -qq cdbs cmake libboost-dev libboost-filesystem-dev

before_script:
 - mkdir build && cd build

script:
 - cmake -DENABLE_TESTING=ON $CMAKE_OPTIONS .. && make && make test 
 - src/tests/blackhole-tests

Disable clang build. Tests are invoked manually now.
Disable clang build. Tests are invoked manually now.
