Skip to content

Commit

Permalink
Fixing build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocav committed Jul 24, 2019
1 parent 9a2db00 commit 75e2793
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 30 deletions.
35 changes: 8 additions & 27 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
}
.\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 ($hasTag) {
$env:Configuration = "Release"
}
if (-not $success) { exit 1 }
.\Build.ps1 -packageSuffix "$buildNumber"
test_script:
- ps: |
.\runtests.ps1
on_finish:
- ps: .\tools\PollSigningResults.ps1
21 changes: 21 additions & 0 deletions runtests.ps1
Original file line number Diff line number Diff line change
@@ -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 }
3 changes: 0 additions & 3 deletions sample/SampleHost/SampleHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 75e2793

Please sign in to comment.