Reviewed-on: #17 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
24 lines
287 B
Makefile
24 lines
287 B
Makefile
test:
|
|
go test ./pkg/... -coverprofile=coverage.out
|
|
|
|
build:
|
|
go build
|
|
|
|
lint:
|
|
golint ./...
|
|
|
|
run:
|
|
make build
|
|
./realdyndns
|
|
|
|
format:
|
|
gofmt -w .
|
|
|
|
check-format:
|
|
@OUTPUT=$$(gofmt -l .); \
|
|
if [ -n "$$OUTPUT" ]; then \
|
|
echo "Formatter failed for:"; \
|
|
echo "$$OUTPUT"; \
|
|
exit 1; \
|
|
fi
|