Self-hosted
Code coverage that never leaves your servers.
gocov is one Go binary and one Postgres database. It talks to your database and your forge, and nothing else: no telemetry, no license check, nothing calls home.
Try it
Running in a minute
The repository's compose file brings up Postgres and the server together, and the database migrations apply themselves on boot. Enable sign-in with your forge and the rest works as on the hosted service, except that a hosted CI runner cannot reach localhost: upload from your own machine with the CLI until the instance has a public URL.
Getting startedgit clone https://github.com/gocov/gocov
cd gocov
docker compose up
# open http://localhost:8080
What you run
Small on purpose.
One process and one database. Everything gocov keeps lives in Postgres, so there is exactly one thing to back up.
One container, nothing on disk
Coverage history, workspaces, gates, sessions and the raw uploaded reports all live in Postgres. The container writes nothing to disk and can be replaced at any time.
A modest footprint
gocov's own hosted service runs as one 0.5 vCPU, 1 GB container in front of a 2 vCPU, 1 GB Postgres. Before that it ran on a single 2 vCPU, 2 GB machine.
A minimal image
A distroless image: the static binary and CA certificates, no shell, no package manager, running as a non-root user. Published for amd64 and arm64.
Verify what you run
Every image and binary carries a signed build provenance attestation, so you can check it was built by gocov's release workflow from the tagged commit.
Binaries too
Prefer systemd to containers? Every release ships the server for Linux and macOS on amd64 and arm64, and for Windows on amd64, with checksums.
The same product
It is the image the hosted service runs, under AGPL-3.0. No feature gates, no seats to count, no license key.
Production
A production setup ships in the repo
deploy/ runs the published image behind Caddy, which obtains and renews the
TLS certificate itself, with your Postgres or a bundled one.
- Copy
.env.exampleto.envand fill in four values: the release, your hostname, the public URL and a secret key. - Point DNS at the machine and open ports 80 and 443.
- Set your Postgres address, or turn on the bundled database.
- Start it with
docker compose.
# upgrading: pick the release, then
docker compose -f docker-compose.prod.yml pull
docker compose -f docker-compose.prod.yml up -d
# migrations apply on the way up
Your forge
Connects to the forges your team uses.
GitHub
Through a GitHub App you register for your instance, so statuses, comments and check runs come from its bot identity.
GitLab
On gitlab.com: merge request notes and statuses, and tokenless uploads from GitLab CI.
Bitbucket Cloud
Code Insights reports and annotations in the pull request diff, and tokenless uploads from Bitbucket Pipelines.
By default only members of the workspaces your instance tracks can sign in. Workspaces come from the forge, so there are no user accounts to manage.
Run it yourself, or start on the hosted service.
Moving from Codecov or Coveralls? The migration guide maps your settings over and keeps the old tool running until the numbers agree.