-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
76 lines (63 loc) · 1.48 KB
/
Makefile.toml
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
[config]
skip_core_tasks = true
[env]
PROJ_NAME = "SpringQL"
[tasks.format]
script = ['''
#!/usr/bin/env bash -eux
cargo fmt --all
''']
[tasks.lint]
script = ['''
#!/usr/bin/env bash -eux
RUSTFLAGS='-D warnings' cargo clippy --all-targets --all-features
''']
[tasks.build]
script = ['''
#!/usr/bin/env bash -eux
RUSTFLAGS='-D warnings' cargo build --all-targets --all-features
''']
[tasks.test]
script = ['''
#!/usr/bin/env bash -eux
RUSTFLAGS='-D warnings' cargo test --all-targets --all-features
''']
[tasks.doc]
script = ['''
#!/usr/bin/env bash -eux
cargo clean --doc
cargo doc --no-deps --all-features
''']
[tasks.deadlink]
script = ['''
#!/usr/bin/env bash -eux
cargo deadlinks --check-http
mlc --ignore-path target
''']
[tasks.copyright]
script = [
'''
#!/usr/bin/env bash -eux
for rs in $(git ls-files |grep -e '\.rs$') ; do grep '// This file is part of https://github.com/SpringQL/replayman which is licensed under MIT OR Apache-2.0. See file LICENSE-MIT or LICENSE-APACHE for full license details.' $rs ; done
''',
]
[tasks.publish]
script = [
'''
#!/usr/bin/env bash -eux
cargo workspaces publish
''',
]
[tasks.lcov]
script = [
'''
#!/usr/bin/env bash -eux
rm -rf target/debug/deps/${PROJ_NAME}-*
export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Zinstrument-coverage"
export LLVM_PROFILE_FILE="${PROJ_NAME}-%p-%m.profraw"
cargo +nightly build --verbose
cargo +nightly test --verbose
grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o lcov.info
''',
]