forked from jbevain/cecil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.azure-pipelines.yml
38 lines (35 loc) · 929 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
trigger:
- master
pr:
- master
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
dotnet build -c Debug Mono.Cecil.sln
displayName: 'Build'
- script: |
dotnet test --no-build -c Debug -f netcoreapp2.1 Mono.Cecil.sln
displayName: 'Test .NET Core'
- task: NuGetToolInstaller@0
displayName: 'Install nuget'
- task: NuGetCommand@2
inputs:
command: 'custom'
arguments: 'install NUnit.Console -Version 3.9.0 -OutputDirectory ./packages'
displayName: 'Get NUnit.Console'
- script: |
mono ./packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe ./Mono.Cecil.nunit
displayName: 'Test .NET 4.0 using Mono'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- script: |
dotnet build -c Debug Mono.Cecil.sln
displayName: 'Build'
- script: |
dotnet test --no-build -c Debug Mono.Cecil.sln
displayName: 'Test'