Reviewed-on: #75 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
32 lines
447 B
Makefile
32 lines
447 B
Makefile
test: test-unit test-race test-coverage
|
|
|
|
test-unit:
|
|
go test ./pkg/... -coverprofile=coverage.out
|
|
|
|
test-race:
|
|
go test ./pkg/... -race
|
|
|
|
test-coverage:
|
|
go tool gcov2lcov -infile coverage.out > lcov.info
|
|
|
|
build:
|
|
go build
|
|
|
|
lint:
|
|
go tool 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
|