Skip to content

Commit

Permalink
test(xtask): Remove xtask -- ci test as it is unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Jun 22, 2022
1 parent 399862d commit d9475c1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions xtask/src/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ enum CiCommand {
Clippy,
/// Check documentation
Docs,
/// Run default tests
Test,
/// Run tests with a specific feature set
TestFeatures {
#[clap(subcommand)]
Expand Down Expand Up @@ -84,7 +82,6 @@ impl CiArgs {
CiCommand::Typos => check_typos(),
CiCommand::Clippy => check_clippy(),
CiCommand::Docs => check_docs(),
CiCommand::Test => run_tests(),
CiCommand::TestFeatures { cmd } => run_feature_tests(cmd),
CiCommand::TestAppservice => run_appservice_tests(),
CiCommand::Wasm { cmd } => run_wasm_checks(cmd),
Expand All @@ -96,7 +93,6 @@ impl CiArgs {
check_clippy()?;
check_typos()?;
check_docs()?;
run_tests()?;
run_feature_tests(None)?;
run_appservice_tests()?;
run_wasm_checks(None)?;
Expand Down Expand Up @@ -141,12 +137,6 @@ fn check_docs() -> Result<()> {
build_docs([], DenyWarnings::Yes)
}

fn run_tests() -> Result<()> {
cmd!("rustup run stable cargo test").run()?;
cmd!("rustup run beta cargo test").run()?;
Ok(())
}

fn run_feature_tests(cmd: Option<FeatureSet>) -> Result<()> {
let args = BTreeMap::from([
(FeatureSet::NoEncryption, "--no-default-features --features sled,native-tls"),
Expand Down

0 comments on commit d9475c1

Please sign in to comment.