forked from fslaborg/XPlot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
40 lines (34 loc) · 899 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
windows:
imageName: 'windows-latest'
trigger:
- master
pool:
vmImage: $(imageName)
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK (based on global.json)'
inputs:
packageType: 'sdk'
useGlobalJson: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- bash: ./build.sh target CIBuild
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: 'Linux build and test'
- powershell: .\build.cmd target CIBuild
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: 'Windows build and test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: 'testResults/TestResults-*.xml'
mergeTestResults: true
## For publishing stuff, eventually
#
# env:
# mapped-gh-token: $(xplotpackages)