mirror of
https://github.com/karust/openserp.git
synced 2026-08-05 08:50:23 +08:00
26 lines
445 B
Makefile
26 lines
445 B
Makefile
GO ?= go
|
|
BINARY ?= openserp
|
|
PKGS ?= ./...
|
|
GOFILES := $(shell git ls-files '*.go')
|
|
|
|
.PHONY: build test test-integration lint run fmt
|
|
|
|
build:
|
|
$(GO) build -o $(BINARY) .
|
|
|
|
test:
|
|
$(GO) test -race -count=1 $(PKGS)
|
|
|
|
test-integration:
|
|
OPENSERP_INTEGRATION_TESTS=1 $(GO) test -race -count=1 -timeout=120s -tags=integration $(PKGS)
|
|
|
|
lint:
|
|
$(GO) vet $(PKGS)
|
|
golangci-lint run --config .golangci.yml
|
|
|
|
run:
|
|
$(GO) run . serve
|
|
|
|
fmt:
|
|
gofmt -w $(GOFILES)
|