Skip to content

Commit

Permalink
Add a Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ogham committed Oct 8, 2020
1 parent 7e3d657 commit 1cbc10f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
all: build test
all-release: build-release test-release

MIN_RUST := "1.31.0"


# compiles the code
build:
cargo +{{MIN_RUST}} build
cargo +stable build

# compiles the code in release mode
build-release:
cargo +{{MIN_RUST}} build --release --verbose
cargo +stable build --release --verbose


# runs unit tests
test:
cargo +{{MIN_RUST}} test --all -- --quiet
cargo +stable test --all -- --quiet

# runs unit tests in release mode
test-release:
cargo +{{MIN_RUST}} test --all --release --verbose
cargo +stable test --all --release --verbose

0 comments on commit 1cbc10f

Please sign in to comment.