Skip to content

Commit

Permalink
Build and test in release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang, Chi committed May 11, 2021
1 parent df979c3 commit 1e9920d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ build:
rustc --version
cargo --version

cargo build --verbose {{FEATURES}}
cargo build --release --verbose {{FEATURES}}

test:
rustc --version
cargo --version

# Limit test threads to 1 to show test name before execution.
RUST_TEST_THREADS=1 cargo test --verbose {{FEATURES}}
RUST_TEST_THREADS=1 cargo test --release --verbose {{FEATURES}}

lint:
rustc --version
Expand All @@ -32,4 +32,4 @@ lint:

valgrind:
echo "Checking for memory leaks..."
find target/{{env_var_or_default("CARGO_BUILD_TARGET", "")}}/debug/deps -maxdepth 1 -type f -executable | xargs valgrind --leak-check=full --error-exitcode=1
find target/{{env_var_or_default("CARGO_BUILD_TARGET", "")}}/release/deps -maxdepth 1 -type f -executable | xargs valgrind --leak-check=full --error-exitcode=1

0 comments on commit 1e9920d

Please sign in to comment.