1 Star 0 Fork 0

寒月笑天/chirpstack-gateway-bridge

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
Orne Brocaar 提交于 2020-12-10 19:47 . Update dependencies.
.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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/inlazy/chirpstack-gateway-bridge.git
git@gitee.com:inlazy/chirpstack-gateway-bridge.git
inlazy
chirpstack-gateway-bridge
chirpstack-gateway-bridge
master

搜索帮助