mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-10 02:09:51 +08:00
feat #11: release hrp cli binaries automatically with github actions
feat #20: add Makefile for running unittest and building hrp cli binary
This commit is contained in:
20
Makefile
Normal file
20
Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
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}'
|
||||
Reference in New Issue
Block a user