Skip to content

Commit

Permalink
Format and simplify code on build, test and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Nov 30, 2017
1 parent 6c535b4 commit 119bd53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ help:
@echo "pkg - build, test and create pkg/fabio.tar.gz"
@echo "clean - remove temp files"

build: checkdeps vendorfmt vet
build: checkdeps vendorfmt vet gofmt
$(GO) build -i $(GOFLAGS)
$(GO) test -i ./...

test: checkdeps vendorfmt
test: checkdeps vendorfmt gofmt
$(GO) test -v -test.timeout 15s `go list ./... | grep -v '/vendor/'`

checkdeps:
Expand All @@ -36,7 +36,7 @@ vendorfmt:
vendorfmt

gofmt:
gofmt -w `find . -type f -name '*.go' | grep -v vendor`
gofmt -s -w `find . -type f -name '*.go' | grep -v vendor`

linux:
GOOS=linux GOARCH=amd64 $(GO) build -i -tags netgo $(GOFLAGS)
Expand Down

0 comments on commit 119bd53

Please sign in to comment.