mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
remove cfg-check in ci tool (#15063)
# Objective - Missed in #14477 - This commands is not used anymore ## Solution - Remove it
This commit is contained in:
parent
0a79a0ac8c
commit
8fb69dcbf0
3 changed files with 0 additions and 23 deletions
|
@ -75,7 +75,6 @@ impl CI {
|
|||
cmds.append(&mut commands::DocCheckCommand::default().prepare(sh, flags));
|
||||
cmds.append(&mut commands::DocTestCommand::default().prepare(sh, flags));
|
||||
cmds.append(&mut commands::CompileCheckCommand::default().prepare(sh, flags));
|
||||
cmds.append(&mut commands::CfgCheckCommand::default().prepare(sh, flags));
|
||||
cmds.append(&mut commands::CompileFailCommand::default().prepare(sh, flags));
|
||||
cmds.append(&mut commands::BenchCheckCommand::default().prepare(sh, flags));
|
||||
cmds.append(&mut commands::ExampleCheckCommand::default().prepare(sh, flags));
|
||||
|
@ -101,7 +100,6 @@ enum Commands {
|
|||
DocCheck(commands::DocCheckCommand),
|
||||
DocTest(commands::DocTestCommand),
|
||||
CompileCheck(commands::CompileCheckCommand),
|
||||
CfgCheck(commands::CfgCheckCommand),
|
||||
CompileFail(commands::CompileFailCommand),
|
||||
BenchCheck(commands::BenchCheckCommand),
|
||||
ExampleCheck(commands::ExampleCheckCommand),
|
||||
|
@ -121,7 +119,6 @@ impl Prepare for Commands {
|
|||
Commands::DocCheck(subcommand) => subcommand.prepare(sh, flags),
|
||||
Commands::DocTest(subcommand) => subcommand.prepare(sh, flags),
|
||||
Commands::CompileCheck(subcommand) => subcommand.prepare(sh, flags),
|
||||
Commands::CfgCheck(subcommand) => subcommand.prepare(sh, flags),
|
||||
Commands::CompileFail(subcommand) => subcommand.prepare(sh, flags),
|
||||
Commands::BenchCheck(subcommand) => subcommand.prepare(sh, flags),
|
||||
Commands::ExampleCheck(subcommand) => subcommand.prepare(sh, flags),
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
use crate::{Flag, Prepare, PreparedCommand};
|
||||
use argh::FromArgs;
|
||||
use xshell::cmd;
|
||||
|
||||
/// Checks that the project compiles using the nightly compiler with cfg checks enabled.
|
||||
#[derive(FromArgs, Default)]
|
||||
#[argh(subcommand, name = "cfg-check")]
|
||||
pub struct CfgCheckCommand {}
|
||||
|
||||
impl Prepare for CfgCheckCommand {
|
||||
fn prepare<'a>(&self, sh: &'a xshell::Shell, _flags: Flag) -> Vec<PreparedCommand<'a>> {
|
||||
vec![PreparedCommand::new::<Self>(
|
||||
cmd!(sh, "cargo +nightly check -Zcheck-cfg --workspace"),
|
||||
"Please fix failing cfg checks in output above.",
|
||||
)
|
||||
.with_env_var("RUSTFLAGS", "-D warnings")]
|
||||
}
|
||||
}
|
|
@ -1,5 +1,4 @@
|
|||
pub use bench_check::*;
|
||||
pub use cfg_check::*;
|
||||
pub use clippy::*;
|
||||
pub use compile::*;
|
||||
pub use compile_check::*;
|
||||
|
@ -14,7 +13,6 @@ pub use test::*;
|
|||
pub use test_check::*;
|
||||
|
||||
mod bench_check;
|
||||
mod cfg_check;
|
||||
mod clippy;
|
||||
mod compile;
|
||||
mod compile_check;
|
||||
|
|
Loading…
Reference in a new issue