Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate the list of test features for ci-* commands #83

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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