Fixing build configuration
This commit is contained in:
Родитель
9a2db0049d
Коммит
75e2793015
35
appveyor.yml
35
appveyor.yml
|
@ -26,34 +26,15 @@ build_script:
|
|||
if (-not $hasTag) {
|
||||
$buildNumber = $env:APPVEYOR_BUILD_NUMBER
|
||||
Write-Host "No git tag found. Setting packages suffix to '$buildNumber'"
|
||||
}
|
||||
}
|
||||
|
||||
if ($hasTag) {
|
||||
$env:Configuration = "Release"
|
||||
}
|
||||
|
||||
.\Build.ps1 -packageSuffix "$buildNumber"
|
||||
test_script:
|
||||
- ps: >-
|
||||
$success = $true
|
||||
|
||||
dotnet test .\test\Microsoft.Azure.WebJobs.Host.UnitTests\ -v q --no-build
|
||||
|
||||
$success = $success -and $?
|
||||
|
||||
dotnet test .\test\Microsoft.Azure.WebJobs.Host.FunctionalTests\ -v q --no-build
|
||||
|
||||
$success = $success -and $?
|
||||
|
||||
dotnet test .\test\Microsoft.Azure.WebJobs.Logging.FunctionalTests\ -v q --no-build
|
||||
|
||||
$success = $success -and $?
|
||||
|
||||
# see results in app insights AntaresDemo 'functionse2eai'
|
||||
|
||||
dotnet test .\test\Microsoft.Azure.WebJobs.Host.EndToEndTests\ -v q --no-build
|
||||
|
||||
$success = $success -and $?
|
||||
|
||||
dotnet test .\test\Microsoft.Azure.Webjobs.Extensions.Storage.UnitTests\ -v q --no-build
|
||||
|
||||
$success = $success -and $?
|
||||
|
||||
if (-not $success) { exit 1 }
|
||||
- ps: |
|
||||
.\runtests.ps1
|
||||
on_finish:
|
||||
- ps: .\tools\PollSigningResults.ps1
|
|
@ -0,0 +1,21 @@
|
|||
$success = $true
|
||||
|
||||
$projects =
|
||||
"test\Microsoft.Azure.WebJobs.Host.UnitTests",
|
||||
"test\Microsoft.Azure.WebJobs.Host.FunctionalTests",
|
||||
"test\Microsoft.Azure.WebJobs.Logging.FunctionalTests",
|
||||
"test\Microsoft.Azure.WebJobs.Host.EndToEndTests",
|
||||
"test\Microsoft.Azure.Webjobs.Extensions.Storage.UnitTests"
|
||||
|
||||
|
||||
foreach ($project in $projects)
|
||||
{
|
||||
$cmd = "test", "$project", "-v", "q", "--no-build"
|
||||
|
||||
& dotnet $cmd
|
||||
|
||||
$success = $success -and $?
|
||||
}
|
||||
|
||||
|
||||
if (-not $success) { exit 1 }
|
|
@ -4,9 +4,6 @@
|
|||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<CodeAnalysisRuleSet>$(SolutionDir)\src.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<LangVersion>7.1</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче