Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions eng/ci/config/test-groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
"display": "CosmosDB Tests",
"stopEventHub": "false"
},
{
"name": "MySQL",
"group": "mysql",
"files": "test_mysql_functions.py",
"emulators": "mysql",
"display": "MySQL Tests",
"stopEventHub": "false"
},
{
"name": "SQL",
"group": "sql",
Expand All @@ -48,29 +40,13 @@
"display": "Durable Task Scheduler Tests",
"stopEventHub": "false"
},
{
"name": "Kafka",
"group": "kafka",
"files": "test_kafka_functions.py",
"emulators": "kafka",
"display": "Kafka Tests",
"stopEventHub": "false"
},
{
"name": "SignalR",
"group": "signalr",
"files": "test_signalr_functions.py",
"emulators": "signalr",
"display": "SignalR Tests",
"stopEventHub": "false"
},
{
"name": "RabbitMQ",
"group": "rabbitmq",
"files": "test_rabbitmq_functions.py",
"emulators": "rabbitmq",
"display": "RabbitMQ Tests",
"stopEventHub": "true"
}
]
}
35 changes: 34 additions & 1 deletion eng/ci/scripts/build-core-tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,49 @@ Write-Host "Zip Output Directory: $ZipOutputDir" -ForegroundColor Yellow
Write-Host "`nPublishing Azure.Functions.Cli with $Configuration configuration..." -ForegroundColor Yellow
Write-Host "Output Directory: $OutputDir" -ForegroundColor Yellow

# Detect target framework from the project file
$projXml = [xml](Get-Content $ProjectPath)
$targetFramework = $projXml.Project.PropertyGroup.TargetFramework | Where-Object { $_ } | Select-Object -First 1
if (-not $targetFramework) {
$targetFramework = "net8.0"
Write-Host "Could not detect TargetFramework, defaulting to $targetFramework" -ForegroundColor Yellow
} else {
Write-Host "Detected TargetFramework: $targetFramework" -ForegroundColor Green
}

Push-Location $CoreToolsDir

try {
# Restore packages first, then publish with --no-restore to avoid redundant downloads
$restoreArgs = @(
"restore",
$ProjectPath,
"/p:TargetFramework=$targetFramework"
)

if (-not [string]::IsNullOrEmpty($Runtime)) {
$restoreArgs += "-r", $Runtime
}

Write-Host "Running: dotnet $($restoreArgs -join ' ')" -ForegroundColor Cyan
& dotnet $restoreArgs 2>&1 | Tee-Object -Variable restoreLogs

if ($LASTEXITCODE -ne 0) {
Write-Host "`n##[error]dotnet restore failed with exit code $LASTEXITCODE" -ForegroundColor Red
$restoreLogs | ForEach-Object { Write-Host $_ }
throw "Restore failed with exit code $LASTEXITCODE"
}

Write-Host "✓ Restore completed successfully" -ForegroundColor Green

$publishArgs = @(
"publish",
$ProjectPath,
"-o", $OutputDir,
"-c", $Configuration,
"-f", "net8.0",
"-f", $targetFramework,
"--self-contained",
"--no-restore",
"/p:ZipAfterPublish=true",
"/p:ZipArtifactsPath=$ZipOutputDir"
)
Expand Down
Loading