Add coverage service

remotes/1698823321490190475/tmp_refs/heads/update-golang
Jonas Franz 5 years ago
parent d872c424b5
commit 000ed0ee7e
  1. 10
      .drone.yml
  2. 8
      Makefile
  3. 2
      README.md

@ -26,6 +26,14 @@ pipeline:
GOPATH: /go
commands:
- make test build
coverage:
image: golang:1.10
pull: true
environment:
GOPATH: /go
secrets: [ coveralls_token ]
commands:
- make coverage
static:
image: golang:1.10
pull: true
@ -115,4 +123,4 @@ pipeline:
services:
gitea:
image: jonasfranz/gitea-service
pull: true
pull: true

@ -81,4 +81,10 @@ vet:
.PHONY: test
test: lint vet
go test -tags web -cover ./...
.PHONY: coverage
coverage:
@hash goveralls > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u github.com/mattn/goveralls; \
fi
goveralls -service=drone.io -endpoint=https://coverage.jonasfranz.software

@ -6,7 +6,7 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/ggmigrator/web.svg)](https://hub.docker.com/r/ggmigrator/web/)
[![Go Report Card](https://goreportcard.com/badge/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator)](https://goreportcard.com/report/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator)
[![GoDoc](https://godoc.org/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator?status.svg)](https://godoc.org/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator)
[![Coverage Status](https://coverage.jonasfranz.software/projects/1/badge.svg)](https://coverage.jonasfranz.software/projects/1)
A tool to migrate [GitHub](https://github.com) Repositories to [Gitea](https://gitea.io) including all issues, labels, milestones
and comments.

Loading…
Cancel
Save