Fetch the repository succeeded.
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。