language: cpp

compiler:
  - clang
  - gcc

before_install:
  - pip install --user cpp-coveralls

before_script:
  - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
  - sudo add-apt-repository --yes ppa:h-rayflood/llvm
  - sudo apt-get update -qq
  - if [ "${CXX}" == "g++"  ]; then
      sudo apt-get install g++-4.8;
      sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 90;
      export CXX="g++-4.8" CC="gcc-4.8";
    fi
  - if [ "${CXX}" == "clang++"  ]; then
      sudo apt-get install clang-3.4 gdb;
      sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.4 50;
      sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.4 50;
      export CXX="clang++-3.4" CC="clang-3.4";
    fi

script:
  - git submodule update --init --recursive
  - mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS=--coverage -DCMAKE_EXE_LINKER_FLAGS=--coverage -DCMAKE_BUILD_TYPE=Debug ..
  - make VERBOSE=1
  - ./tests/testrunner

after_success:
  - if [ "${CXX}" == "g++-4.8" ]; then
      cd .. && coveralls --include include/dota2api;
    fi

language: cpp

sudo: false

compiler:
  - clang
  - gcc

before_install:
  - pip install --user cpp-coveralls

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

before_script:
  - if [ "${CXX}" == "g++"  ]; then
      export CXX="g++-4.8" CC="gcc-4.8";
    fi

script:
  - git submodule update --init --recursive
  - mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS=--coverage -DCMAKE_EXE_LINKER_FLAGS=--coverage -DCMAKE_BUILD_TYPE=Debug ..
  - make VERBOSE=1
  - ./tests/testrunner

after_success:
  - if [ "${CXX}" == "g++-4.8" ]; then
    cd .. && coveralls --gcov /usr/bin/gcov-4.8 --include include/dota2api;
    fi

Use new container based infrastructure
Use new container based infrastructure
