64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
# CI build. No publioshing of artifacts
|
|
|
|
variables:
|
|
DotNetVersion: "3.1.100"
|
|
|
|
# A pipeline with no CI trigger
|
|
trigger: none
|
|
|
|
pr: [ 'master' ]
|
|
|
|
jobs:
|
|
|
|
- job: Windows
|
|
pool: Hosted VS2017
|
|
steps:
|
|
|
|
- task: DotNetCoreInstaller@0
|
|
displayName: force use of desired dotnet version
|
|
inputs:
|
|
version: $(DotNetVersion)
|
|
|
|
# "restore" is run automatically by "build"
|
|
- task: DotNetCoreCLI@2
|
|
displayName: build solution (Release)
|
|
inputs:
|
|
command: "build"
|
|
projects: OpenTelemetry.proj
|
|
arguments: "--configuration Release"
|
|
|
|
# consider switch to https://docs.microsoft.com/vsts/pipelines/tasks/test/vstest?view=vsts
|
|
- task: DotNetCoreCLI@2
|
|
displayName: test
|
|
inputs:
|
|
command: "test"
|
|
projects: "test/**/*.Tests.csproj"
|
|
arguments: "--configuration Release"
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
- job: Linux
|
|
pool: Hosted Ubuntu 1604
|
|
steps:
|
|
- task: DotNetCoreInstaller@0
|
|
displayName: force use of desired dotnet version
|
|
inputs:
|
|
version: $(DotNetVersion)
|
|
|
|
# "restore" is run automatically by "build"
|
|
- task: DotNetCoreCLI@2
|
|
displayName: build
|
|
inputs:
|
|
command: "build"
|
|
projects: OpenTelemetry.proj
|
|
arguments: "--configuration Release"
|
|
|
|
- task: DotNetCoreCLI@2
|
|
displayName: test
|
|
inputs:
|
|
command: "test"
|
|
projects: "test/**/*.Tests.csproj"
|
|
arguments: "--configuration Release"
|
|
|
|
- task: PublishTestResults@2
|