Infrastruttura: nome «Rail Enterprise», CI e rilasci su Gitea, documentazione
CI / Build e test (pull_request) Successful in 1m20s
CI / Immagine Docker (pull_request) Successful in 37s

Il progetto adotta il nome «Rail Enterprise» ovunque (codice RailEnterprise.*,
variabili RE_*, intestazioni RESV/RECL, immagine rail-enterprise-server) per
allinearsi al repository Gitea. Aggiunge Gitea Actions sul modello di Chronos:
CI su PR e main, rilascio da tag con gioco Windows (client Godot + server in
server/), server Windows/Linux e immagine Docker nel registro Gitea, nightly.
Aggiunge i riferimenti visivi 06–09, i modelli di PR e issue, l'ADR 0014 e
aggiorna README (comandi locali), STATE e CLAUDE.md. 120 test verdi.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-07 11:14:54 +01:00
1 parent f6c2a17b4d
commit c1a0049bcf
300 files changed
+1602 -1045

No files matched your search

+4 -4
View File
@@ -16,19 +16,19 @@ $bad = Get-ChildItem -Recurse -Include *.csproj,*.props,*.targets |
Where-Object { Select-String -Path $_.FullName -Pattern '<PackageReference|<PackageVersion|<GlobalPackageReference' -Quiet }
if ($bad) { $bad | ForEach-Object { Write-Error "Pacchetto NuGet in $($_.FullName)" }; exit 1 }
dotnet build ViaFerrea.sln -c $Configuration -nologo -v minimal
dotnet build RailEnterprise.sln -c $Configuration -nologo -v minimal
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
if ($Test) {
dotnet run --project tests/ViaFerrea.Tests -c $Configuration --no-build
dotnet run --project tests/RailEnterprise.Tests -c $Configuration --no-build
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
if ($Client) {
# Il server locale viene pubblicato dentro la cartella del client esportato.
dotnet publish src/ViaFerrea.Server -c $Configuration -r win-x64 --self-contained true -o client/ViaFerrea.Client/export/windows/server
dotnet publish src/RailEnterprise.Server -c $Configuration -r win-x64 --self-contained true -o client/RailEnterprise.Client/export/windows/server
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
dotnet build client/ViaFerrea.Client/ViaFerrea.Client.csproj -c $Configuration
dotnet build client/RailEnterprise.Client/RailEnterprise.Client.csproj -c $Configuration
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
Write-Host "build: ok ($Configuration)"
+1 -1
View File
@@ -7,5 +7,5 @@ config="${1:-Release}"
export DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NOLOGO=1
scripts/check-nuget.sh
dotnet build ViaFerrea.sln -c "$config" -nologo -v minimal
dotnet build RailEnterprise.sln -c "$config" -nologo -v minimal
echo "build: ok ($config)"
+4 -4
View File
@@ -10,11 +10,11 @@ godot="${GODOT:-godot}"
out="$(realpath -m "${1:-out/autopilot}")"
mkdir -p "$out"
dotnet build src/ViaFerrea.Server -c Release -v quiet -nologo
dotnet build client/ViaFerrea.Client/ViaFerrea.Client.csproj -c Debug -v quiet -nologo
"$godot" --headless --path client/ViaFerrea.Client --import >/dev/null 2>&1 || true
dotnet build src/RailEnterprise.Server -c Release -v quiet -nologo
dotnet build client/RailEnterprise.Client/RailEnterprise.Client.csproj -c Debug -v quiet -nologo
"$godot" --headless --path client/RailEnterprise.Client --import >/dev/null 2>&1 || true
run=("$godot" --path client/ViaFerrea.Client --rendering-driver opengl3 --resolution 1600x900 --windowed -- --autopilot "$out")
run=("$godot" --path client/RailEnterprise.Client --rendering-driver opengl3 --resolution 1600x900 --windowed -- --autopilot "$out")
if [ -z "${DISPLAY:-}" ] && command -v xvfb-run >/dev/null 2>&1; then
xvfb-run -a -s "-screen 0 1600x900x24" "${run[@]}" 2>&1 | grep -E "autopilot|ERROR" || true
else
+4 -4
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Costruisce l'immagine Docker del server con il tag della versione (da Directory.Build.props)
# e "latest", poi la pubblica sul registry Gitea.
# Uso: VF_REGISTRY=gitea.lan:3000/utente scripts/publish-image.sh [--no-push]
# Uso: RE_REGISTRY=gitea.lan:3000/utente scripts/publish-image.sh [--no-push]
set -euo pipefail
cd "$(dirname "$0")/.."
@@ -10,8 +10,8 @@ if [ -z "$version" ]; then
echo "ERRORE: versione non trovata in Directory.Build.props" >&2
exit 1
fi
registry="${VF_REGISTRY:-}"
name="via-ferrea-server"
registry="${RE_REGISTRY:-}"
name="rail-enterprise-server"
image="${registry:+$registry/}$name"
docker build -f docker/Dockerfile -t "$image:$version" -t "$image:latest" .
@@ -21,7 +21,7 @@ if [ "${1:-}" = "--no-push" ]; then
exit 0
fi
if [ -z "$registry" ]; then
echo "VF_REGISTRY non impostato: immagine solo locale (usa --no-push per non vedere questo avviso)" >&2
echo "RE_REGISTRY non impostato: immagine solo locale (usa --no-push per non vedere questo avviso)" >&2
exit 0
fi
docker push "$image:$version"
+4 -4
View File
@@ -6,8 +6,8 @@ cd "$(dirname "$0")/.."
export DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NOLOGO=1
scripts/check-nuget.sh
dotnet build ViaFerrea.sln -c Release -nologo -v quiet
if [ -f src/ViaFerrea.Tools/Commands/ValidateDataCommand.cs ]; then
dotnet run --project src/ViaFerrea.Tools -c Release --no-build -- validate-data --data data
dotnet build RailEnterprise.sln -c Release -nologo -v quiet
if [ -f src/RailEnterprise.Tools/Commands/ValidateDataCommand.cs ]; then
dotnet run --project src/RailEnterprise.Tools -c Release --no-build -- validate-data --data data
fi
dotnet run --project tests/ViaFerrea.Tests -c Release --no-build -- "$@"
dotnet run --project tests/RailEnterprise.Tests -c Release --no-build -- "$@"