C6: CI senza Node, installatore in casa, caratteri di sistema e icone nostre (#58) #65

Merged
Alby96 merged 15 commits from funzione/senza-terzi into main 2026-11-26 15:21:10 +01:00
3 changed files with 20 additions and 2 deletions
Showing only changes of commit 2d40bfe35b - Show all commits

No files matched your search

@@ -28,4 +28,22 @@ internal static class Repository
return Path.Combine([root, .. parts]);
}
/// <summary>
/// A file or folder under docs/. The build of the Docker image copies the sources without docs/ (.dockerignore) and
/// without .git: there the test is inconclusive. In a checkout docs/ is always there, so the test goes on and a
/// missing path fails it.
/// </summary>
public static string Docs(params string[] parts)
{
var path = PathOf(["docs", .. parts]);
var root = Root()!;
var isCheckout = Directory.Exists(Path.Combine(root, ".git")) || File.Exists(Path.Combine(root, ".git"));
if (!Directory.Exists(Path.Combine(root, "docs")) && !isCheckout)
{
Assert.Inconclusive("Questa copia del repository non ha docs/ (costruzione dell'immagine Docker).");
}
return path;
}
}
+1 -1
View File
@@ -48,7 +48,7 @@ public sealed partial class InHouseAssetsTests
// Exactly the stack of the specification (appendix B, «pila dei caratteri di sistema»), nothing more: no name of a
// font the Docker image leaves out (Liberation).
var specification = File.ReadAllText(Febe.Tests.Desktop.Support.Repository.PathOf("docs", "SPECIFICA.md"));
var specification = File.ReadAllText(Febe.Tests.Desktop.Support.Repository.Docs("SPECIFICA.md"));
var stated = SpecificationStack().Match(specification);
Assert.IsTrue(stated.Success, "la pila dell'appendice B");
Assert.AreEqual(stated.Groups[1].Value, stack.Groups[1].Value.Trim());
+1 -1
View File
@@ -37,7 +37,7 @@ public sealed partial class ScreenshotToolTests
[TestMethod]
public void TheListTakesEveryScreenshotOfTheFolderOnceWithItsStep()
{
var folder = Repository.PathOf("docs", "schermate");
var folder = Repository.Docs("schermate");
var steps = Repository.PathOf("tools", "Febe.Schermate", "passi");
var files = Shots.All.Select(s => s.File).ToList();
CollectionAssert.AllItemsAreUnique(files);