Skip to content

Commit

Permalink
Merge pull request #2 from HagaiBarel/makefile
Browse files Browse the repository at this point in the history
Introduce makefile
  • Loading branch information
maorfr committed Oct 15, 2018
2 parents b56f42c + 4ed09e5 commit 86e78f9
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 86e78f9

Please sign in to comment.