forked from exercism/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
28 lines (23 loc) · 789 Bytes
/
justfile
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
_default:
just --list --unsorted
# configlet wrapper, uses problem-specifications submodule
configlet *args="":
@[ -f bin/configlet ] || bin/fetch-configlet
./bin/configlet {{ args }}
# generate a new uuid straight to your clipboard
uuid:
./bin/configlet uuid | tr -d '[:space:]' | wl-copy
# simulate CI locally (WIP)
test:
just configlet lint
./bin/lint_markdown.sh
# TODO shellcheck
./bin/check_exercises.sh
CLIPPY=true ./bin/check_exercises.sh
./bin/ensure_stubs_compile.sh
cd rust-tooling && cargo test
# TODO format exercises
add-exercise *args="":
cd rust-tooling/generate; cargo run --quiet --release -- add {{ args }}
update-exercise *args="":
cd rust-tooling/generate; cargo run --quiet --release -- update {{ args }}