Add codecov badge and remove -race from test-coverage target #58

This commit is contained in:
Michael Mayer 2018-11-06 16:17:49 +01:00
parent a3167cc0ec
commit 64371e4e86
2 changed files with 10 additions and 4 deletions

View file

@ -37,9 +37,13 @@ start:
migrate:
$(GORUN) cmd/photoprism/photoprism.go migrate
test:
$(GOTEST) -timeout 30m -v ./internal/...
$(GOTEST) -timeout 20m -v ./internal/...
test-race:
$(GOTEST) -race -timeout 60m -v ./internal/...
test-coverage:
$(GOTEST) -timeout 30m -race -coverprofile=coverage.txt -covermode=atomic -v ./internal/...
$(GOTEST) -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/...
test-coverage-html:
$(GOTEST) -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/...
$(GOTOOL) cover -html=coverage.txt -o coverage.html
clean:
$(GOCLEAN)

View file

@ -2,12 +2,14 @@ PhotoPrism: Browse your life in pictures
========================================
[![Apache License](https://img.shields.io/badge/license-apache-blue.svg)][license]
[![Code Quality](https://goreportcard.com/badge/github.com/photoprism/photoprism)][code quality]
[![Code Quality](https://goreportcard.com/badge/github.com/photoprism/photoprism)][quality]
[![Test Coverage](https://codecov.io/gh/photoprism/photoprism/branch/develop/graph/badge.svg)][coverage]
[![Build Status](https://travis-ci.org/photoprism/photoprism.png?branch=develop)][ci]
[![Documentation](https://readthedocs.org/projects/photoprism-docs/badge/?version=latest&style=flat)][docs]
[license]: https://github.com/photoprism/photoprism/blob/develop/LICENSE
[code quality]: https://goreportcard.com/report/github.com/photoprism/photoprism
[quality]: https://goreportcard.com/report/github.com/photoprism/photoprism
[coverage]: https://codecov.io/gh/photoprism/photoprism
[ci]: https://travis-ci.org/photoprism/photoprism
[docs]: https://docs.photoprism.org/en/latest/