Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/tools/ci/src/commands/compile.rs
6598 views
1
use crate::{
2
args::Args,
3
commands::{
4
BenchCheckCommand, CompileCheckCommand, CompileFailCommand, ExampleCheckCommand,
5
IntegrationTestCheckCommand, TestCheckCommand,
6
},
7
Prepare, PreparedCommand,
8
};
9
use argh::FromArgs;
10
11
/// Alias for running the `compile-fail`, `bench-check`, `example-check`, `compile-check`, `test-check` and `test-integration-check` subcommands.
12
#[derive(FromArgs, Default)]
13
#[argh(subcommand, name = "compile")]
14
pub struct CompileCommand {}
15
16
impl Prepare for CompileCommand {
17
fn prepare<'a>(&self, sh: &'a xshell::Shell, args: Args) -> Vec<PreparedCommand<'a>> {
18
let mut commands = vec![];
19
commands.append(&mut CompileFailCommand::default().prepare(sh, args));
20
commands.append(&mut BenchCheckCommand::default().prepare(sh, args));
21
commands.append(&mut ExampleCheckCommand::default().prepare(sh, args));
22
commands.append(&mut CompileCheckCommand::default().prepare(sh, args));
23
commands.append(&mut TestCheckCommand::default().prepare(sh, args));
24
commands.append(&mut IntegrationTestCheckCommand::default().prepare(sh, args));
25
commands
26
}
27
}
28
29