2 Star 0 Fork 0

mirrors_getsentry/symbolicator

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Makefile 1.70 KB
Copy Edit Raw Blame History
joshuarli authored 2025-10-15 02:29 +08:00 . feat: devenv, uv, pre-commit (#1770)
SHELL = /bin/bash
all: check test
.PHONY: all
check: style lint
.PHONY: check
clean:
cargo clean
rm -rf .venv
.PHONY: clean
# Builds
build:
cargo build
.PHONY: build
release:
cargo build --release --locked
objcopy --only-keep-debug target/release/symbolicator{,.debug}
objcopy --strip-debug --strip-unneeded target/release/symbolicator
objcopy --add-gnu-debuglink target/release/symbolicator{.debug,}
.PHONY: release
# Tests
test:
cargo test --workspace --all-features --locked
.PHONY: test
# Documentation
docs: venv
.venv/bin/mkdocs build
touch site/.nojekyll
.PHONY: docs
docserver: venv
.venv/bin/mkdocs serve
.PHONY: doc
venv:
devenv sync
.PHONY: venv
# Style checking
style:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo +stable fmt -- --check
.PHONY: style
# Linting
lint:
@rustup component add clippy --toolchain stable 2> /dev/null
cargo +stable clippy --all-features --workspace --tests --examples
.PHONY: lint
# Formatting
format:
@rustup component add rustfmt --toolchain stable 2> /dev/null
cargo +stable fmt
.PHONY: format-rust
# Build GoCD pipelines
gocd:
@ rm -rf ./gocd/generated-pipelines
@ mkdir -p ./gocd/generated-pipelines
@ cd ./gocd/templates && jb install && jb update
@ find . -type f \( -name '*.libsonnet' -o -name '*.jsonnet' \) -print0 | xargs -n 1 -0 jsonnetfmt -i
@ find . -type f \( -name '*.libsonnet' -o -name '*.jsonnet' \) -print0 | xargs -n 1 -0 jsonnet-lint -J ./gocd/templates/vendor
@ cd ./gocd/templates && jsonnet --ext-code output-files=true -J vendor -m ../generated-pipelines ./symbolicator.jsonnet
@ cd ./gocd/generated-pipelines && find . -type f \( -name '*.yaml' \) -print0 | xargs -n 1 -0 yq -p json -o yaml -i
.PHONY: gocd
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_getsentry/symbolicator.git
git@gitee.com:mirrors_getsentry/symbolicator.git
mirrors_getsentry
symbolicator
symbolicator
master

Search