feat(azure-pipeline): Set up CI with Azure Pipelines
[skip ci]
This commit is contained in:
Родитель
85591e07e1
Коммит
1d15e398fe
|
@ -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'
|
Загрузка…
Ссылка в новой задаче