mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2024-11-28 09:08:44 +02:00
12 lines
256 B
Bash
Executable File
12 lines
256 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "gofmt"
|
|
diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go' -not -path "./.godeps/*"))
|
|
echo "go vet"
|
|
go vet ./...
|
|
echo "go test"
|
|
go test -timeout 60s ./...
|
|
echo "go test -race"
|
|
GOMAXPROCS=4 go test -timeout 60s -race ./...
|