Skip to content

Commit

Permalink
added Azure Pipelines build system (akkadotnet#3794)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Jul 30, 2019
1 parent 437be4e commit 0261a3d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
16 changes: 8 additions & 8 deletions build-system/pr-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
displayName: Windows Build
inputs:
filename: build.cmd
arguments: 'buildRelease ' # Run an build
arguments: 'buildRelease incremental' # Run an incremental build
continueOnError: true
condition: eq( variables['Agent.OS'], 'Windows_NT' )
- task: CopyFiles@2
Expand All @@ -42,7 +42,7 @@ jobs:
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: istOutput
artifactName: incrementalistOutput
- script: 'echo 1>&2'
failOnStderr: true
displayName: 'If above is partially succeeded, then fail'
Expand All @@ -54,7 +54,7 @@ jobs:
displayName: '.NET Framework Unit Tests (Windows)'
vmImage: 'vs2017-win2016'
scriptFileName: build.cmd
scriptArgs: runTests
scriptArgs: runTests incremental
outputDirectory: 'TestResults'

- template: azure-pipeline.template.yaml
Expand All @@ -63,7 +63,7 @@ jobs:
displayName: '.NET Core Unit Tests (Windows)'
vmImage: 'vs2017-win2016'
scriptFileName: build.cmd
scriptArgs: runTestsNetCore
scriptArgs: runTestsNetCore incremental
outputDirectory: 'TestResults'

- template: azure-pipeline.template.yaml
Expand All @@ -72,7 +72,7 @@ jobs:
displayName: '.NET Core Unit Tests (Linux)'
vmImage: 'ubuntu-16.04'
scriptFileName: './build.sh'
scriptArgs: runTestsNetCore
scriptArgs: runTestsNetCore incremental
outputDirectory: 'TestResults'

- template: azure-pipeline.template.yaml
Expand All @@ -81,7 +81,7 @@ jobs:
displayName: '.NET Core Multi-Node Tests (Windows)'
vmImage: 'vs2017-win2016'
scriptFileName: 'build.cmd'
scriptArgs: MultiNodeTestsNetCore
scriptArgs: MultiNodeTestsNetCore incremental
outputDirectory: 'TestResults'

- template: azure-pipeline.template.yaml
Expand All @@ -90,7 +90,7 @@ jobs:
displayName: '.NET Framework Multi-Node Tests (Windows)'
vmImage: 'vs2017-win2016'
scriptFileName: 'build.cmd'
scriptArgs: MultiNodeTests
scriptArgs: MultiNodeTests incremental
outputDirectory: 'TestResults'

- template: azure-pipeline.template.yaml
Expand All @@ -99,5 +99,5 @@ jobs:
displayName: 'NuGet Pack'
vmImage: 'vs2017-win2016'
scriptFileName: build.cmd
scriptArgs: CreateNuget nugetprerelease=dev
scriptArgs: CreateNuget nugetprerelease=dev incremental
outputDirectory: 'bin/nuget'
2 changes: 1 addition & 1 deletion build-system/windows-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ steps:
displayName: 'FAKE Build'
inputs:
filename: build.cmd
arguments: 'All SignClientUser=$(signingUsername) SignClientSecret=$(signingPassword) nugetpublishurl=https://www.nuget.org/api/v2/package nugetkey=$(nugetKey)'
arguments: 'Nuget SignClientUser=$(signingUsername) SignClientSecret=$(signingPassword) nugetpublishurl=https://www.nuget.org/api/v2/package nugetkey=$(nugetKey)'

- task: GitHubRelease@0
displayName: 'GitHub release (create)'
Expand Down
5 changes: 2 additions & 3 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ let getAffectedProjects =

Target "ComputeIncrementalChanges" (fun _ ->
if runIncrementally then
log (sprintf "(Debug) .NET Core Root found at %s" (Environment.GetEnvironmentVariable "DOTNET_ROOT"))
let targetBranch = match getBuildParam "targetBranch" with
| "" -> "dev"
| null -> "dev"
Expand Down Expand Up @@ -238,7 +237,7 @@ Target "RunTests" (fun _ ->
info.WorkingDirectory <- (Directory.GetParent project).FullName
info.Arguments <- arguments) (TimeSpan.FromMinutes 30.0)

ResultHandling.failBuildIfXUnitReportedError TestRunnerErrorLevel.DontFailBuild result
ResultHandling.failBuildIfXUnitReportedError TestRunnerErrorLevel.Error result

CreateDir outputTests
projects |> Seq.iter (runSingleProject)
Expand All @@ -263,7 +262,7 @@ Target "RunTestsNetCore" (fun _ ->
info.WorkingDirectory <- (Directory.GetParent project).FullName
info.Arguments <- arguments) (TimeSpan.FromMinutes 30.0)

ResultHandling.failBuildIfXUnitReportedError TestRunnerErrorLevel.DontFailBuild result
ResultHandling.failBuildIfXUnitReportedError TestRunnerErrorLevel.Error result

CreateDir outputTests
projects |> Seq.iter (runSingleProject)
Expand Down

0 comments on commit 0261a3d

Please sign in to comment.