language: cpp

dist: trusty
sudo: false

matrix:
  include:
    - os: linux
      compiler: gcc
      #    - os: linux
      #compiler: clang

script:
  - (cd bigtable/api && cmake . && make)

addons:
  apt:
    packages:
      - vim
      - curl
      - git-core
      - make
      - gcc
      - g++
      - build-essential
      - autoconf
      - libtool
      - pkg-config
      - cmake

install:
  - cd $HOME && git clone https://github.com/grpc/grpc.git
  - (cd $HOME/grpc && git submodule update --init && make && sudo make install)
  - (cd $HOME/grpc/third_party/protobuf && sudo make install)

notifications:
  email: false

language: cpp

dist: trusty
sudo: true

matrix:
  include:
    - os: linux
      compiler: gcc
      # - os: linux
      #compiler: clang

script:
  - (cd bigtable/api && cmake . && make)

addons:
  apt:
    packages:
      - vim
      - curl
      - git-core
      - make
      - gcc
      - g++
      - build-essential
      - autoconf
      - automake
      - autoconf-archive
      - libtool
      - pkg-config
      - cmake
      - clang++-3.9

install:
  - sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 100
  - sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.9 100
  - (cd $HOME && git clone https://github.com/grpc/grpc.git)
  - (cd $HOME/grpc && git submodule update --init && make -j 2 && make install)
  - (cd $HOME/grpc/third_party/protobuf && make install)

notifications:
  email: false

Enable sudo, too hard to install packages otherwise.
Enable sudo, too hard to install packages otherwise.
