-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
57 lines (47 loc) · 1.44 KB
/
justfile
File metadata and controls
57 lines (47 loc) · 1.44 KB
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
# https://just.systems
@_:
just --list
# Build the main binary
[group('lifecycle')]
build:
cargo build --release
# Build the plugins
[group('lifecycle')]
build-plugins:
cargo build --release -p repos-health
cargo build --release -p repos-validate
cargo build --release -p repos-review
cargo build --release -p repos-fix
# Format and lint the code
[group('qa')]
fmt:
cargo fmt --all
cargo clippy --all-targets --all-features -- -D warnings
# Run tests
[group('qa')]
test:
cargo test --quiet
# Run coverage
[group('qa')]
coverage:
cargo tarpaulin --skip-clean
# Registered plugins are binaries named `repos-*` in /usr/local/bin
# sudo ln -sf $(pwd)/target/release/repos-health /usr/local/bin/repos-health
#
# List available registered plugins
[group('run')]
list-plugins:
ls -al /usr/local/bin/repos-* || echo "No plugins installed"
[group('devex')]
link-plugins:
sudo ln -sf $(pwd)/target/release/repos-health /usr/local/bin/repos-health
sudo ln -sf $(pwd)/target/release/repos-validate /usr/local/bin/repos-validate
sudo ln -sf $(pwd)/target/release/repos-review /usr/local/bin/repos-review
sudo ln -sf $(pwd)/target/release/repos-fix /usr/local/bin/repos-fix
[group('devex')]
unlink-plugins:
sudo rm -f /usr/local/bin/repos-health
sudo rm -f /usr/local/bin/repos-validate
sudo rm -f /usr/local/bin/repos-review
sudo rm -f /usr/local/bin/repos-fix
# vim: set filetype=Makefile ts=4 sw=4 et: