forked from devrc-hub/devrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDevrcfile
85 lines (62 loc) · 1.61 KB
/
Devrcfile
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
variables:
message: "Hello, $USER!"
message_1 +raw: "Hello, $USER"
environment:
var_1: "env_var_1"
var_2: "env_var_2"
run-help:
desc: "Show envrc tasks descriptions"
exec: cargo run --bin=devrc -- --help
run cmds="":
environment:
RUST_TRACEBACK: "1"
desc: "Execute given task"
exec: cargo run --bin=devrc -- {{ cmds }}
subtasks:
- name: hello
hello:
desc: "Print hello world message"
exec:
- echo {{ message }}
# specsheet expr.toml -O cmd.target=./my-expr
xtests file="*": |
specsheet xtests/{{ file }}.toml -O cmd.target.devrc="${CARGO_TARGET_DIR:-../target}/debug/devrc"
clean: cargo clean
lint:
desc: "Run code linters and formatters after clean"
exec:
- cargo clippy --all -- --verbose
- cargo clippy --all --all-features -- --verbose
- cargo +nightly fmt --all -- --check
deps: [clean]
test:
desc: "Run tests"
exec:
- cargo test
- cargo test --all-features
testm mod="":
desc: "Test single module"
environment:
RUST_TRACEBACK: "1"
RUST_LOG: info
exec: |
cargo test --all-features -- --nocapture {{ mod }}
check:
desc: "Run checkups"
deps: [clean, lint, test]
install:
desc: "Install development version"
exec: cargo install --bins devrc --all-features --path ./cli
format:
desc: "Apply code formatter"
exec: |
cargo +nightly fmt --all --
update-release-version level="patch":
desc: "Update release version"
run: |
cargo release version --execute {{ level }}
update-xtests:
desc: "Prepare next release"
run: |
cargo build
target/debug/devrc --help > xtests/outputs/test_help_test_1_1_stdout.ansitxt