Skip to content

Commit

Permalink
Add simple justfile (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor authored May 27, 2024
1 parent 8cd55cd commit 3690679
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
subdirectories: ["rustler_tests", "rustler_mix"]
]
22 changes: 22 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
build:
cargo build
cd rustler_mix && mix deps.get && mix compile

test:
cargo test -q
cd rustler_mix && mix deps.get && mix test
cd rustler_tests && mix deps.get && mix test

test-all: test
cd rustler_mix && ./test.sh

check-format:
cargo fmt --all -- --check
mix format --check-formatted

format:
cargo fmt --all
mix format

lint:
cargo clippy --all-targets --all-features

0 comments on commit 3690679

Please sign in to comment.