Improve build time

The bcrypt hashing is really slow with enabled race condition checker,
therefore we exlcude it.
This commit is contained in:
Jannis Mattheis 2018-02-11 10:54:15 +01:00 committed by Jannis Mattheis
parent 166d501c7c
commit 082b054f4c
3 changed files with 7 additions and 2 deletions

View File

@ -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 ./...

View File

@ -1,3 +1,5 @@
// +build !race
package auth
import (

View File

@ -1,3 +1,5 @@
// +build !race
package auth
import (