Skip to content

Commit

Permalink
Deduplicate the list of test features for ci-* commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcornelissen committed Jul 11, 2023
1 parent 20a3d57 commit d93837f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit d93837f

Please sign in to comment.