mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 16:29:37 +08:00
refactor: move files to hrp
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
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: bump
|
||||
bump: ## bump hrp version, e.g. make bump version=4.0.0
|
||||
@echo "[info] bump hrp version"
|
||||
@. scripts/bump_version.sh $(version)
|
||||
|
||||
.PHONY: build
|
||||
build: ## build hrp cli tool
|
||||
@echo "[info] build hrp cli tool"
|
||||
@. 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