mirror of
https://github.com/gotify/server.git
synced 2026-06-05 19:32:45 +08:00
Improve build time
The bcrypt hashing is really slow with enabled race condition checker, therefore we exlcude it.
This commit is contained in:
committed by
Jannis Mattheis
parent
166d501c7c
commit
082b054f4c
@@ -4,9 +4,10 @@ set -e
|
||||
echo "" > coverage.txt
|
||||
|
||||
for d in $(go list ./... | grep -v vendor); do
|
||||
go test -v -race -coverprofile=profile.out -covermode=atomic $d
|
||||
go test -v -coverprofile=profile.out -covermode=atomic $d
|
||||
if [ -f profile.out ]; then
|
||||
cat profile.out >> coverage.txt
|
||||
rm profile.out
|
||||
fi
|
||||
done
|
||||
done
|
||||
go test -v -race ./...
|
||||
@@ -1,3 +1,5 @@
|
||||
// +build !race
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// +build !race
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user