Improve build time
The bcrypt hashing is really slow with enabled race condition checker, therefore we exlcude it.
This commit is contained in:
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
|
||||
go test -v -race ./...
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
// +build !race
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// +build !race
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
|
|
|
|||
Loading…
Reference in New Issue