Investigating CI
Build Successful The build was successful
Gitea/epoch_forge/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2025-12-12 19:39:18 +01:00
parent f475ae146b
commit 6a7e35c8e4
3 changed files with 46 additions and 32 deletions

2
.rust-toolchain.toml Normal file
View File

@ -0,0 +1,2 @@
[toolchain]
channel = "1.92.0"

11
Jenkinsfile vendored
View File

@ -17,6 +17,13 @@ pipeline {
}
}
stage('Update') {
steps {
sh "rustup update"
// sh "rustup show"
}
}
/* ===============
END USER CONFIG
================== */
@ -25,9 +32,9 @@ pipeline {
steps {
script {
if (env.BRANCH_NAME == 'origin/review' || env.BRANCH_NAME == 'review' || env.BRANCH_NAME == 'origin/dev-ci' || env.BRANCH_NAME == 'dev-ci') {
sh 'cargo +nightly test'
sh 'cargo test'
} else if (env.BRANCH_NAME == 'origin/master' || env.BRANCH_NAME == 'master') {
sh 'cargo +nightly test'
sh 'cargo test'
} else {
echo "Unknown branch: ${env.BRANCH_NAME} - skipping build."
}

View File

@ -22,14 +22,6 @@ impl Displayable for Entity {
}
}
// Short, single-line representation
fn print_short(&self) {
println!("{}", self.to_pretty_tree());
if let Ok(c) = self.stats_to_table() {
println!("{c}");
}
}
/// One-liner used for auto-generation of Vec<T> displays
fn oneline_display(&self) -> String {
let capital = self
@ -181,37 +173,35 @@ impl Entity {
));
// ── Metadata section
out.push_str(&indent(0, "├─ metadata\n"));
out.push_str(&indent(0, &format!("├─ {}\n", "metadata".green())));
out.push_str(&indent(
1,
&format!("├─ position: {}\n", self.metadata.position.to_symbol()),
&format!(
"├─ {}: {}\n",
"position".bright_green(),
self.metadata.position.to_symbol()
),
));
out.push_str(&indent(
1,
&format!("├─ capital: {:?}\n", self.metadata.capital),
&format!(
"├─ {}: {:?}\n",
"capital".bright_green(),
self.metadata.capital
),
));
out.push_str(&indent(
1,
&format!("└─ prestige: {}\n", self.metadata.prestige),
));
// ── Other top‑level fields
out.push_str(&indent(
0,
&format!("├─ duration: {}\n", self.duration.to_symbol().magenta()),
));
out.push_str(&indent(
0,
&format!("├─ effect_nature: {:?}\n", self.effect_nature),
));
out.push_str(&indent(
0,
&format!("├─ effect_bounds: {}\n", self.effect_bounds.to_symbol()),
&format!(
"└─ {}: {}\n",
"prestige".bright_green(),
self.metadata.prestige
),
));
// ── Optional links
if !self.metadata.links.is_empty() {
out.push_str(&indent(0, "├─ links\n"));
out.push_str(&indent(0, &format!("├─ {}\n", "links".green())));
for (i, link) in self.metadata.links.iter().enumerate() {
let last = i == self.metadata.links.len() - 1;
let symbol = if last { "└─" } else { "├─" };
@ -221,11 +211,26 @@ impl Entity {
));
}
}
// ── Entity type again at the end (if you want it back here)
// ── Other top‑level fields
out.push_str(&indent(
0,
&format!("└─ entity_type: {}", self.entity_type.to_shortest()),
&format!(
"├─ {}: {}\n",
"duration".green(),
self.duration.to_symbol().yellow()
),
));
out.push_str(&indent(
0,
&format!("├─ {}: {:?}\n", "effect_nature".green(), self.effect_nature),
));
out.push_str(&indent(
0,
&format!(
"└─ {}: {}",
"effect_bounds".green(),
self.effect_bounds.to_symbol()
),
));
out