代码拉取完成,页面将自动刷新
.PHONY: build clean test package serve run-compose-test
VERSION := $(shell git describe --always |sed -e "s/^v//")
build:
@echo "Compiling source"
@mkdir -p build
go build $(GO_EXTRA_BUILD_ARGS) -ldflags "-s -w -X main.version=$(VERSION)" -o build/chirpstack-gateway-bridge cmd/chirpstack-gateway-bridge/main.go
clean:
@echo "Cleaning up workspace"
@rm -rf build
@rm -rf dist
test:
@echo "Running tests"
@rm -f coverage.out
@golint ./...
@go vet ./...
@go test -cover -v -coverprofile coverage.out -p 1 ./...
dist:
@goreleaser
mkdir -p dist/upload/tar
mkdir -p dist/upload/deb
mkdir -p dist/upload/rpm
mv dist/*.tar.gz dist/upload/tar
mv dist/*.deb dist/upload/deb
mv dist/*.rpm dist/upload/rpm
snapshot:
@goreleaser --snapshot
dev-requirements:
go install golang.org/x/lint/golint
go install github.com/goreleaser/goreleaser
go install github.com/goreleaser/nfpm
# shortcuts for development
serve: build
./build/chirpstack-gateway-bridge
run-compose-test:
docker-compose run --rm chirpstack-gateway-bridge make test
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。