20 lines
359 B
Makefile
20 lines
359 B
Makefile
.PHONY: run test check build docker-build
|
|
|
|
run:
|
|
go run ./cmd/server
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
check:
|
|
gofmt -w $$(find . -name '*.go' -type f)
|
|
go vet ./...
|
|
go test -race ./...
|
|
|
|
build:
|
|
mkdir -p bin
|
|
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o bin/license-platform ./cmd/server
|
|
|
|
docker-build:
|
|
docker build -t universal-license-platform:1.0.0-local .
|