Run clang static analysis

Refactor: Split travis build script into its own file
Install clang package to get scan-build