Files
httprunner/Makefile
debugtalk 48e26354a7 feat #11: release hrp cli binaries automatically with github actions
feat #20: add Makefile for running unittest and building hrp cli binary
2021-11-19 17:38:31 +08:00

21 lines
480 B
Makefile

SHELL=/usr/bin/env bash
.DEFAULT_GOAL=help
.PHONY: test
test: ## run unit tests
@echo "[info] run unit tests"
@echo "go test -race -v ./..."
@go test -race -v ./...
.PHONY: build
build: ## build hrp cli tool
@echo "[info] build hrp cli tool"
@. hrp/scripts/build.sh
.PHONY: help
help: ## print make commands
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
cut -d ":" -f1- | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'