Skip to content

Commit 3690679

Browse files
authored
Add simple justfile (#610)
1 parent 8cd55cd commit 3690679

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.formatter.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
subdirectories: ["rustler_tests", "rustler_mix"]
3+
]

justfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
build:
2+
cargo build
3+
cd rustler_mix && mix deps.get && mix compile
4+
5+
test:
6+
cargo test -q
7+
cd rustler_mix && mix deps.get && mix test
8+
cd rustler_tests && mix deps.get && mix test
9+
10+
test-all: test
11+
cd rustler_mix && ./test.sh
12+
13+
check-format:
14+
cargo fmt --all -- --check
15+
mix format --check-formatted
16+
17+
format:
18+
cargo fmt --all
19+
mix format
20+
21+
lint:
22+
cargo clippy --all-targets --all-features

0 commit comments

Comments
 (0)