From 778a75ca96c7cc370b33438818a4f84432d3027a Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Tue, 11 Jul 2023 23:22:51 +0200 Subject: [PATCH] Deduplicate the list of test features for `ci-*` commands --- Justfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Justfile b/Justfile index 54530a9..76d93f8 100644 --- a/Justfile +++ b/Justfile @@ -231,7 +231,7 @@ _profile_prepare: [private] @ci-coverage: just ci={{TRUE}} \ - test_features=test-dangerous,test-symlink,test-trash \ + test_features={{ALL_TEST_FEATURES}} \ coverage [private] @@ -245,13 +245,13 @@ _profile_prepare: [private] @ci-mutation: just ci={{TRUE}} \ - test_features=test-dangerous,test-symlink,test-trash \ + test_features={{ALL_TEST_FEATURES}} \ mutation [private] @ci-test: just ci={{TRUE}} \ - test_features=test-dangerous,test-symlink,test-trash \ + test_features={{ALL_TEST_FEATURES}} \ test-each [private] @@ -274,6 +274,8 @@ CI_ONLY_CARGO_ARGS := if ci == TRUE { "--locked" } else { "" } CI_ONLY_COVERAGE_ARGS := if ci == TRUE { "--out lcov" } else { "" } CI_ONLY_TEST_ARGS := if ci == TRUE { "--no-fail-fast" } else { "" } +ALL_TEST_FEATURES := "test-dangerous,test-symlink,test-trash" + BUILD_ARGS := STD_BUILD_ARGS + " " + CI_ONLY_CARGO_ARGS COVERAGE_ARGS := STD_COVERAGE_ARGS + " " + CI_ONLY_CARGO_ARGS + " " + CI_ONLY_COVERAGE_ARGS DOCS_ARGS := STD_DOCS_ARGS + " " + CI_ONLY_CARGO_ARGS