diff --git a/README.md b/README.md index dff610f8ce..1f436695eb 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ For information on how to set up a pipeline for this repository, see [Create your first pipeline](https://docs.microsoft.com/azure/devops/pipelines/get-started-yaml?view=azure-devops). For more information on building .NET Core applications, see [.NET Core](https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core?view=azure-devops). +Thank you sharing this sample file, now I can build my pipelines. + # Contributing diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..e373f45a29 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,28 @@ +# ASP.NET Core +# Build and test ASP.NET Core projects targeting .NET Core. +# Add steps that run tests, create a NuGet package, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +variables: + buildConfiguration: 'Release' + +steps: +- script: dotnet build --configuration $(buildConfiguration) + displayName: 'dotnet build $(buildConfiguration)' +- task: VSTest@2 + displayName: 'Run tests' + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: PublishTestResults@2 + displayName: 'Publish test results' + inputs: + testResultsFormat: 'JUnit' + testResultsFiles: '**/TEST-*.xml'