feat(azure-pipeline): Set up CI with Azure Pipelines

[skip ci]
This commit is contained in:
Pratik Bhattacharya 2021-04-04 03:24:35 +05:30
Родитель 85591e07e1
Коммит 1d15e398fe
1 изменённых файлов: 33 добавлений и 0 удалений

33
azure-pipelines.yml Normal file
Просмотреть файл

@ -0,0 +1,33 @@
trigger:
- main
jobs:
- job: BuildTelemetryLibrary
displayName: Build Telemetry Library
pool:
vmImage: ubuntu-latest
variables:
BuildConfiguration: 'Release'
BuildPlatform: 'any cpu'
steps:
- task: NuGetToolInstaller@1
displayName: Install NuGet 5.5.0
inputs:
versionSpec: '5.5.0'
checkLatest: true
- task: NuGetCommand@2
displayName: Restore Packages (AppInsights.EnterpriseTelemetry.sln)
inputs:
command: 'restore'
restoreSolution: 'src/AppInsights.EnterpriseTelemetry.sln'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
displayName: Build Library Projects
inputs:
command: 'build'
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: Test Projects
inputs:
command: 'test'
projects: '**/*.Tests.csproj'