Skip to content
Wendel Hime edited this page Nov 25, 2019 · 2 revisions

Setup OpenCov with Go

  1. Follow the instructions to setup goveralls

  2. Export the following environment variables

    • COVERALLS_TOKEN: This is the token from the OpenCov project page. It should be kept secret, so use your CI environment when possible.
    • COVERALLS_ENDPOINT: This is the endpoint of your OpenCov installation.
    • GIT_BRANCH (optional): This is the branch for the current build. A smart default will be use if you do not provide it.
  3. Append -endpoint=$COVERALLS_ENDPOINT to the goveralls command. For example:

    goveralls -coverprofile=profile.cov -endpoint=$COVERALLS_ENDPOINT
Clone this wiki locally