Updated travis configuration.

Added before_install, install, before_script commands.
Added cppcheck.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>