mirror of
https://github.com/gotify/server.git
synced 2024-01-28 15:20:56 +03:00
test: don't run tests twice
This commit is contained in:
7
Makefile
7
Makefile
@@ -9,7 +9,7 @@ DOCKER_RUN=docker run --rm -v "$$PWD/.:${DOCKER_WORKDIR}" -v "`go env GOPATH`/pk
|
||||
DOCKER_GO_BUILD=go build -mod=readonly -a -installsuffix cgo -ldflags "$$LD_FLAGS"
|
||||
NODE_OPTIONS=$(shell if node --help | grep -q -- "--openssl-legacy-provider"; then echo --openssl-legacy-provider; fi)
|
||||
|
||||
test: test-coverage test-race test-js
|
||||
test: test-coverage test-js
|
||||
check: check-go check-swagger check-js
|
||||
check-ci: check-swagger check-js
|
||||
|
||||
@@ -17,11 +17,8 @@ require-version:
|
||||
if [ -n ${VERSION} ] && [[ $$VERSION == "v"* ]]; then echo "The version may not start with v" && exit 1; fi
|
||||
if [ -z ${VERSION} ]; then echo "Need to set VERSION" && exit 1; fi;
|
||||
|
||||
test-race:
|
||||
go test -race ./...
|
||||
|
||||
test-coverage:
|
||||
go test -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
go test --race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
||||
format:
|
||||
goimports -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
//go:build !race
|
||||
// +build !race
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
//go:build !race
|
||||
// +build !race
|
||||
|
||||
package password
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
//go:build (linux || darwin) && !race
|
||||
//go:build linux || darwin
|
||||
// +build linux darwin
|
||||
// +build !race
|
||||
|
||||
package plugin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user