29 lines
1.0 KiB
Makefile
29 lines
1.0 KiB
Makefile
# Makefile for galaxy/rtmanager.
|
|
#
|
|
# The `jet` target regenerates the go-jet/v2 query-builder code under
|
|
# internal/adapters/postgres/jet/ against a transient PostgreSQL container
|
|
# brought up by cmd/jetgen. Generated code is committed.
|
|
#
|
|
# The `mocks` target regenerates the gomock-driven mocks via the
|
|
# //go:generate directives that live next to the interfaces they cover:
|
|
# - internal/ports/ — port interfaces (Stage 12)
|
|
# - internal/api/internalhttp/handlers/ — REST handler service ports (Stage 16)
|
|
# Generated code is committed.
|
|
#
|
|
# The `integration` target runs the service-local end-to-end suite
|
|
# under integration/. It requires a reachable Docker daemon
|
|
# (`/var/run/docker.sock` or `DOCKER_HOST`); without one the helpers
|
|
# in integration/harness call t.Skip and the tests are no-ops.
|
|
|
|
.PHONY: jet mocks integration
|
|
|
|
jet:
|
|
go run ./cmd/jetgen
|
|
|
|
mocks:
|
|
go generate ./internal/ports/...
|
|
go generate ./internal/api/internalhttp/handlers/...
|
|
|
|
integration:
|
|
go test -tags=integration -count=1 ./integration/...
|