Unione di funzione/senza-terzi in funzione/dashboard: prove senza docs/ nell'immagine
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
1553600b0d
3 files changed
+20
-2
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user