Add codecov badge and remove -race from test-coverage target #58
This commit is contained in:
parent
a3167cc0ec
commit
64371e4e86
2 changed files with 10 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -37,9 +37,13 @@ start:
|
||||||
migrate:
|
migrate:
|
||||||
$(GORUN) cmd/photoprism/photoprism.go migrate
|
$(GORUN) cmd/photoprism/photoprism.go migrate
|
||||||
test:
|
test:
|
||||||
$(GOTEST) -timeout 30m -v ./internal/...
|
$(GOTEST) -timeout 20m -v ./internal/...
|
||||||
|
test-race:
|
||||||
|
$(GOTEST) -race -timeout 60m -v ./internal/...
|
||||||
test-coverage:
|
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
|
$(GOTOOL) cover -html=coverage.txt -o coverage.html
|
||||||
clean:
|
clean:
|
||||||
$(GOCLEAN)
|
$(GOCLEAN)
|
||||||
|
|
|
@ -2,12 +2,14 @@ PhotoPrism: Browse your life in pictures
|
||||||
========================================
|
========================================
|
||||||
|
|
||||||
[![Apache License](https://img.shields.io/badge/license-apache-blue.svg)][license]
|
[![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]
|
[![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]
|
[![Documentation](https://readthedocs.org/projects/photoprism-docs/badge/?version=latest&style=flat)][docs]
|
||||||
|
|
||||||
[license]: https://github.com/photoprism/photoprism/blob/develop/LICENSE
|
[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
|
[ci]: https://travis-ci.org/photoprism/photoprism
|
||||||
[docs]: https://docs.photoprism.org/en/latest/
|
[docs]: https://docs.photoprism.org/en/latest/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue