Go to the LaMetric Developper site
And create an app with 3 screens:
- the first is a simple "Name" screen for the Travis build status
- the second is a "Goal" screen for the coverage report
- the third is a simple "Name" for the coverage change metric
Set the app to use Push mode.
Publish you app as a private app
Keep a copy of the URL and Access Token.
The app expect Travis and Coverals to calls though their respective webhooks. Each service must target a specific path.
For Travis CI, add the url to service with:
notifications:
webhooks: http://server:port/travis
or
notifications:
webhooks:
- http://other/server
- http://server:port/travis
Don't forget to append the /travis
path to the end the URL.
For Coveralls, add the webhook url to the notifications section.
Don't forget to append the /coversalls
path to the end of the URL.
This requires the go toolchain:
go get github.com/yalp/lametric-build
To run properly, the service requires some env vars:
PORT
: port to useLAMETRIC_URL
: URL to your LaMetric private appLAMETRIC_TOKEN
: Token for your LaMetric private app
Example:
PORT=8082 LAMETRIC_URL="http://localhost:9090" LAMETRIC_TOKEN="ABCD" ./lametric-build
Public domain. I'm not responsible if your house burns, nor anything else.
- Add configuration file
- Make Travis or Coveralls services optional
- Support more cover and build services
- Make some screens optional