wrap functionality in a function
take arguments to define build
if analyse is run on Travis CI, add build info