Skip to content

Commit 4862952

Browse files
committed
unbreak CI
1 parent 8e8ed8a commit 4862952

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

xtask/tests/ci.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ fn main() {
8686
let name = entry.file_name();
8787
let name = name.to_str().unwrap();
8888

89+
// skip hidden folders
90+
if name.starts_with(".") {
91+
continue;
92+
}
93+
8994
if EXAMPLES
9095
.iter()
9196
.find(|(example, ..)| *example == name)
@@ -94,4 +99,18 @@ fn main() {
9499
panic!("example `{}` is missing an entry in xtask `EXAMPLES`", name);
95100
}
96101
}
102+
103+
104+
let mut cargo = Command::new("cargo");
105+
let toml_path = "nrf52840-hal-tests/Cargo.toml";
106+
let status = cargo
107+
.args(&["build", "--manifest-path", &toml_path, "--target", "thumbv7em-none-eabihf", "--tests"])
108+
.status()
109+
.map_err(|e| format!("could not execute {:?}: {}", cargo, e))
110+
.unwrap();
111+
assert!(
112+
status.success(),
113+
"command exited with error status: {:?}",
114+
cargo
115+
);
97116
}

0 commit comments

Comments
 (0)