oauth2_proxy/test.sh

12 lines
256 B
Bash
Raw Normal View History

2014-11-10 02:48:09 +00:00
#!/bin/bash
set -e
2017-03-29 03:09:53 +00:00
echo "gofmt"
diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go' -not -path "./.godeps/*"))
echo "go vet"
go vet ./...
echo "go test"
2014-11-10 02:48:09 +00:00
go test -timeout 60s ./...
2017-03-29 03:09:53 +00:00
echo "go test -race"
2014-11-10 02:48:09 +00:00
GOMAXPROCS=4 go test -timeout 60s -race ./...