generalize report generation

Change-Id: I9258812a72b4dd5bc2fd230fc84a5281f9621c10
Reviewed-on: http://review.couchbase.org/27591
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>