mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-22 03:55:11 +00:00
ee898bef8d
Using the cargo-hack command, which now gets installed in the Vagrant environment, there's now an easy way to make sure exa can be built and test with all combinations of features. There have been times in the past where exa has failed to build without the git feature, and I've just never noticed. This should put a stop to that.
35 lines
710 B
Makefile
35 lines
710 B
Makefile
all: build test
|
|
all-release: build-release test-release
|
|
|
|
|
|
# compiles the exa binary
|
|
@build:
|
|
cargo build
|
|
|
|
# compiles the exa binary (in release mode)
|
|
@build-release:
|
|
cargo build --release --verbose
|
|
|
|
# compiles the exa binary with every combination of feature flags
|
|
build-features:
|
|
cargo hack build --feature-powerset
|
|
|
|
|
|
# runs unit tests
|
|
@test:
|
|
cargo test --all -- --quiet
|
|
|
|
# runs unit tests (in release mode)
|
|
@test-release:
|
|
cargo test --release --all --verbose
|
|
|
|
# runs unit tests with every combination of feature flags
|
|
test-features:
|
|
cargo hack test --feature-powerset --lib -- --quiet
|
|
|
|
|
|
# prints versions of the necessary build tools
|
|
@versions:
|
|
rustc --version
|
|
cargo --version
|