Updated travis configuration.

Added before_install, install, before_script commands.
Added cppcheck.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Merge pull request #58 from lgromanowski/travis

Updated travis configuration.