Merge pull request #361 from jehiah/gofmt_361

travis: run gofmt and go vet
This commit is contained in:
Jehiah Czebotar 2017-03-29 09:53:19 -04:00 committed by GitHub
commit bb9b607440
5 changed files with 20 additions and 14 deletions

View File

@ -3,11 +3,11 @@ package providers
import (
"errors"
"fmt"
"github.com/bitly/go-simplejson"
"github.com/bitly/oauth2_proxy/api"
"log"
"net/http"
"net/url"
"github.com/bitly/go-simplejson"
)
type AzureProvider struct {

View File

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