This PR proposes adding an XCMetricsPlugin to surface data from git and attach it to a build's metadata, taking an initial pass at resolving #9. There are two things worth calling out:
When initialized, the GitPlugin will require the path of the associated git directory to look for. This is necessary because Xcode's $SRCROOT environment variable does not appear to be available along with some of the other environment variables used in XCMetrics, and because the XCMetrics executable will not be able to call git commands without knowing where to look.
This PR includes only the options to retrieve the current branch and the latest commit on said branch, though it hopefully makes surfacing more data points from git (when needed) easy to do.
I went ahead and just copied in the license headers added in ThermalThrottling on #13, though if there is a different approach to that I'm happy to follow up.
This PR proposes adding an
XCMetricsPlugin
to surface data from git and attach it to a build's metadata, taking an initial pass at resolving #9. There are two things worth calling out:GitPlugin
will require the path of the associated git directory to look for. This is necessary because Xcode's$SRCROOT
environment variable does not appear to be available along with some of the other environment variables used inXCMetrics
, and because theXCMetrics
executable will not be able to call git commands without knowing where to look.I went ahead and just copied in the license headers added in
ThermalThrottling
on #13, though if there is a different approach to that I'm happy to follow up.Thanks! 🙌🏽