2019-09-30 18:22:48 +03:00
|
|
|
trigger:
|
|
|
|
- master
|
2019-09-30 18:53:22 +03:00
|
|
|
- dev
|
2019-09-30 18:22:48 +03:00
|
|
|
|
|
|
|
variables:
|
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
2019-10-04 18:32:54 +03:00
|
|
|
PackageVersion: $[format('0.5.0-{0}', variables['Build.BuildId'])]
|
2019-09-30 18:22:48 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: Linux_Build_and_Test
|
|
|
|
pool:
|
|
|
|
vmImage: 'Ubuntu-16.04'
|
|
|
|
steps:
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: Build
|
|
|
|
inputs:
|
|
|
|
command: build
|
2019-09-30 18:36:22 +03:00
|
|
|
projects: '**/Tooling.sln'
|
2019-09-30 18:22:48 +03:00
|
|
|
arguments: '--configuration Release'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
inputs:
|
|
|
|
command: test
|
2019-09-30 18:36:22 +03:00
|
|
|
projects: '**/test/**/*Test.csproj'
|
2019-09-30 18:22:48 +03:00
|
|
|
- job: MacOS_Build_and_Test
|
|
|
|
pool:
|
|
|
|
vmImage: 'macOS-10.14'
|
|
|
|
steps:
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: Build
|
|
|
|
inputs:
|
|
|
|
command: build
|
2019-09-30 18:36:22 +03:00
|
|
|
projects: '**/Tooling.sln'
|
2019-09-30 18:22:48 +03:00
|
|
|
arguments: '--configuration Release'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
inputs:
|
|
|
|
command: test
|
2019-09-30 18:36:22 +03:00
|
|
|
projects: '**/test/**/*Test.csproj'
|
2019-09-30 18:22:48 +03:00
|
|
|
- job: Windows_Build_and_Test
|
|
|
|
pool:
|
|
|
|
vmImage: 'Windows-2019'
|
|
|
|
steps:
|
|
|
|
- task: DotNetCoreCLI@2
|
2019-10-04 18:32:54 +03:00
|
|
|
displayName: Pack
|
2019-09-30 18:22:48 +03:00
|
|
|
inputs:
|
2019-10-04 18:32:54 +03:00
|
|
|
command: 'pack'
|
|
|
|
arguments: '---no-restore -c $(buildConfiguration) /p:TreatWarningsAsErrors=True'
|
|
|
|
packagesToPack: 'Tooling.sln'
|
|
|
|
versioningScheme: 'byEnvVar'
|
|
|
|
versionEnvVar: 'PackageVersion'
|
2019-09-30 18:22:48 +03:00
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
inputs:
|
|
|
|
command: test
|
2019-09-30 18:36:22 +03:00
|
|
|
projects: '**/test/**/*Test.csproj'
|
2019-09-30 18:22:48 +03:00
|
|
|
arguments: '--configuration $(buildConfiguration)'
|