language: cpp
compiler:
  - gcc
  - clang
before_script:
  - sudo apt-get install libboost-all-dev
  - mkdir build && cd build
  - cmake -G "Unix Makefiles" ..
script:
  - make

language: cpp
compiler:
  - gcc
  - clang
before_install:
  - sudo apt-get install libboost-all-dev
  - mkdir build && cd build
  - cmake -G "Unix Makefiles" ..
script:
  - make

Update Travis Ci to use before_install
Update Travis Ci to use before_install

It's before_install that's supposed to get the environment for the build up and ready. before_script is supposed to be used before testing begins. This is according to http://about.travis-ci.org/docs/user/build-configuration/