1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-03-23 21:50:48 +02:00

travis: run gofmt and go vet

This commit is contained in:
Jehiah Czebotar 2017-03-28 23:09:53 -04:00
parent 4464655276
commit c1116ea506

@ -1,5 +1,11 @@
#!/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 ./...