Skip to content

Commit

Permalink
Add simple justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed May 16, 2024
1 parent 8cd55cd commit 4239541
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 4239541

Please sign in to comment.