mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-07 07:22:39 +08:00
refactor: remove opencv
This commit is contained in:
@@ -4,10 +4,8 @@
|
||||
|
||||
# Usage:
|
||||
# $ make build
|
||||
# $ make build tags=opencv
|
||||
# or
|
||||
# $ bash scripts/build.sh
|
||||
# $ bash scripts/build.sh opencv
|
||||
|
||||
set -e
|
||||
set -x
|
||||
@@ -16,15 +14,8 @@ set -x
|
||||
mkdir -p "output"
|
||||
bin_path="output/hrp"
|
||||
|
||||
# optional build tags: opencv
|
||||
tags=$1
|
||||
|
||||
# build
|
||||
if [ -z "$tags" ]; then
|
||||
go build -ldflags '-s -w' -o "$bin_path" hrp/cmd/cli/main.go
|
||||
else
|
||||
go build -ldflags '-s -w' -tags "$tags" -o "$bin_path" hrp/cmd/cli/main.go
|
||||
fi
|
||||
go build -ldflags '-s -w' -o "$bin_path" hrp/cmd/cli/main.go
|
||||
|
||||
# check output and version
|
||||
ls -lh "$bin_path"
|
||||
|
||||
Reference in New Issue
Block a user