Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple justfile #610

Merged
merged 1 commit into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading