language: cpp
compiler:
  - gcc
  - clang
before_install:
  - sudo add-apt-repository -y ppa:kalakris/cmake
  - sudo apt-get update -qq
install:
  # See issue travis-ci/travis-ci#1379
  - 'if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; export CXX="g++-4.8" CC="gcc-4.8"; else export CC=clang CXX=clang++; fi'
  # CMake
  - sudo apt-get install -qq cmake
  # Google Protobuf
  - sudo apt-get install -qq protobuf-compiler libprotobuf-dev
  # GLFW
  - git clone https://github.com/glfw/glfw.git
  - sudo apt-get install -qq xorg-dev libgl1-mesa-dev libglu1-mesa-dev
  - cd glfw && git checkout 3.1 && cmake . && make && sudo make install && cd ..
script:
  - mkdir build && cd build && cmake .. -G "Unix Makefiles" && make -j8

language: cpp
compiler:
  - gcc
  - clang
before_install:
  - sudo add-apt-repository -y ppa:kalakris/cmake
  - sudo apt-get update -qq
install:
  # See issue travis-ci/travis-ci#1379
  - 'if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; export CXX="g++-4.8" CC="gcc-4.8"; else export CC=clang CXX=clang++; fi'
  # CMake
  - sudo apt-get install -qq cmake
  # Google Protobuf
  - sudo apt-get install -qq protobuf-compiler libprotobuf-dev
  # GLFW
  - sudo apt-get install -qq xorg-dev libgl1-mesa-dev libglu1-mesa-dev
  - wget https://github.com/glfw/glfw/archive/3.1.tar.gz
  - tar xzf 3.1.tar.gz
  - cd glfw-3.1 && cmake . && make && sudo make install && cd ..
  # Bullet
  - wget https://bullet.googlecode.com/files/bullet-2.82-r2704.tgz
  - tar xzf bullet-2.82-r2704.tgz
  - cd bullet-2.82-r2704 && mkdir build && cd build && cmake .. && make -j8 && sudo make install
script:
  - mkdir build && cd build && cmake .. -G "Unix Makefiles" && make -j8

Fix build script again 2.
Fix build script again 2.
