summaryrefslogtreecommitdiffstats
path: root/Justfile
diff options
context:
space:
mode:
authorBenjamin Sago <ogham@bsago.me>2020-10-10 00:57:20 +0100
committerBenjamin Sago <ogham@bsago.me>2020-10-10 00:57:20 +0100
commitee898bef8d02cf28d1d8552995e5339c5c2994ef (patch)
tree6c1ca69440e04446a550c0147408dbadfe2c342a /Justfile
parent0550faec05e8131ee8d6e6d438c680264598503a (diff)
Add commands to test feature combinations
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.
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Justfile b/Justfile
index c07aaea..953e9df 100644
--- a/Justfile
+++ b/Justfile
@@ -10,6 +10,10 @@ all-release: build-release test-release
@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:
@@ -19,6 +23,10 @@ all-release: build-release test-release
@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: