Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update azure-pipelines.yml #115

Merged
merged 1 commit into from
Jan 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 16 additions & 31 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,27 @@ variables:
value: $[counter('buildnumber')]

jobs:
- job: Windows
- job: Build
strategy:
matrix:
Linux:
vmImage: ubuntu-16.04
MacOS:
vmImage: macOS-latest
Windows:
vmImage: windows-2019
pool:
vmImage: windows-2019
vmImage: $(vmImage)
steps:
- task: UseDotNet@2
displayName: Install .NET Core 3.0
displayName: Install .NET Core 3.1 SDK
inputs:
version: '3.0.x'
version: '3.1.x'
packageType: sdk
- task: UseDotNet@2
displayName: Install .NET Core 2.2
displayName: Install .NET Core 2.1 runtime
inputs:
version: '2.2.x'
version: '2.1.x'
packageType: runtime
- powershell: ./build.ps1 -ci
displayName: Invoke build.ps1
Expand All @@ -33,33 +41,10 @@ jobs:
condition: always()
continueOnError: true
inputs:
testRunTitle: Windows
testRunTitle: $(vmImage)
testRunner: vstest
testResultsFiles: '**/*.trx'
- publish: 'artifacts/'
artifact: 'Packages'
displayName: Publish artifacts
- job: Linux
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: UseDotNet@2
displayName: Install .NET Core 3.0
inputs:
version: '3.0.x'
packageType: sdk
- task: UseDotNet@2
displayName: Install .NET Core 2.2
inputs:
version: '2.2.x'
packageType: runtime
- script: ./build.ps1 -ci
displayName: Invoke build.ps1
- task: PublishTestResults@2
displayName: Upload test results
condition: always()
continueOnError: true
inputs:
testRunTitle: Linux
testRunner: vstest
testResultsFiles: '**/*.trx'
condition: and(succeeded(), eq('windows-2019', variables['vmImage']))