Skip to content

Commit

Permalink
Introduce makefile for fun and profit
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagai Barel committed Oct 14, 2018
1 parent eef4651 commit 4ed09e5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@
vendor/

examples/

bin/
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
all: test build

fmt:
go fmt ./pkg/... ./cmd/...

vet:
go vet ./pkg/... ./cmd/...

# Run tests
test: fmt vet
go test ./test/... ./pkg/... -coverprofile cover.out

# Build orca binary
build: fmt vet
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/orca cmd/orca.go

0 comments on commit 4ed09e5

Please sign in to comment.