Files
openserp/Makefile

26 lines
445 B
Makefile
Raw Normal View History

2026-06-10 14:54:45 +03:00
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)