pool:
  vmImage: 'Ubuntu 16.04'

variables:
  buildConfiguration: 'Release'

steps:
- script: dotnet build --configuration $(buildConfiguration)
  displayName: 'dotnet build $(buildConfiguration)'

- task: DotNetCoreCLI@2
  inputs:
    command: test
    projects: '**/test/*.csproj'
    arguments: '--configuration $(buildConfiguration)'

Set up CI with Azure Pipelines
Set up CI with Azure Pipelines