Skip to content

Commit ecac0f5

Browse files
authored
Ignore clipboard tests from CI (#572)
* Disable clipboard tests in CI. As Linux cannot access X11 and therefore the clipboard tests would fail. * Remove release-plz workflow.
1 parent 4daf9aa commit ecac0f5

File tree

3 files changed

+8
-29
lines changed

3 files changed

+8
-29
lines changed

.github/workflows/release-plz.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

crates/account_extras/build.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use rustc_version::{version_meta, Channel};
22

33
fn main() {
44
println!("cargo::rustc-check-cfg=cfg(CHANNEL_NIGHTLY)");
5+
println!("cargo::rustc-check-cfg=cfg(NOT_CI)");
56

67
// Set cfg flags depending on release channel
78
let channel = match version_meta().unwrap().channel {
@@ -10,5 +11,10 @@ fn main() {
1011
Channel::Nightly => "CHANNEL_NIGHTLY",
1112
Channel::Dev => "CHANNEL_DEV",
1213
};
13-
println!("cargo:rustc-cfg={}", channel)
14+
println!("cargo:rustc-cfg={}", channel);
15+
if option_env!("CI").is_some() {
16+
println!("cargo:rustc-cfg={}", "CI")
17+
} else {
18+
println!("cargo:rustc-cfg={}", "NOT_CI")
19+
}
1420
}

crates/account_extras/tests/clipboard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use anyhow::Result;
22

3-
#[cfg(feature = "clipboard")]
3+
#[cfg(all(feature = "clipboard", NOT_CI))]
44
#[tokio::test]
55
async fn clipboard() -> Result<()> {
66
// NOTE: we must run these tests in serial

0 commit comments

Comments
 (0)