forked from chyh1990/yaml-rust
-
Notifications
You must be signed in to change notification settings - Fork 13
/
garden.yaml
62 lines (59 loc) · 2.11 KB
/
garden.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Use "cargo install garden-tools" to install garden https://gitlab.com/garden-rs/garden
#
# usage:
# garden build
# garden test
# garden check
# garden fmt
# garden fix
commands:
bench: cargo bench "$@"
build: cargo build "$@"
check>:
- check/clippy
- check/fmt
- build
- test
- check/profile
check/clippy: cargo clippy --all-targets "$@" -- -D warnings
check/fmt: cargo fmt --check
check/profile: |
cargo build \
--profile=release-lto \
--package gen_large_yaml \
--bin gen_large_yaml \
--manifest-path tools/gen_large_yaml/Cargo.toml
clean: cargo clean "$@"
coverage: cargo kcov "$@"
doc: cargo doc --no-deps --package yaml-rust2 "$@"
ethi/bench: |
cargo build --release --all-targets
cd ../Yaml-rust && cargo build --release --all-targets
cd ../libfyaml/build && ninja
cargo bench_compare run_bench
fix: cargo clippy --all-targets --fix "$@" -- -D warnings
fmt: cargo fmt "$@"
test: cargo test "$@"
update: cargo update "$@"
watch: cargo watch --shell "garden check"
trees:
yaml-rust2:
description: A pure Rust YAML implementation
path: ${GARDEN_CONFIG_DIR}
url: "[email protected]:Ethiraric/yaml-rust2.git"
remotes:
davvid: "[email protected]:davvid/yaml-rust2.git"
yaml-rust: "[email protected]:chyh1990/yaml-rust.git"
gitconfig:
# Access yaml-rust2 pull requests as yaml-rust2/pull/*
remote.yaml-rust2.url: "[email protected]:Ethiraric/yaml-rust2.git"
remote.yaml-rust2.fetch:
- "+refs/pull/*/head:refs/remotes/yaml-rust2/pull/*"
# Access yaml-rust pull requests as yaml-rust/pull/*
remote.yaml-rust.fetch:
- "+refs/heads/*:refs/remotes/yaml-rust/*"
- "+refs/pull/*/head:refs/remotes/yaml-rust/pull/*"
yaml-test-suite:
description: Comprehensive, language independent Test Suite for YAML
path: tests/yaml-test-suite
url: https://github.com/yaml/yaml-test-suite