diff --git a/.gitignore b/.gitignore index 1674ffa..fafe223 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ vendor/ examples/ + +bin/ \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..11c4671 --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file