forked from OData/odata.net
-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildandtest.yml
56 lines (47 loc) · 1.53 KB
/
buildandtest.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
steps:
- task: NuGetToolInstaller@0
inputs:
versionSpec: '6.5.0'
- task: UseDotNet@2
inputs:
version: '1.0.4'
- task: UseDotNet@2
inputs:
version: '2.1.3'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
# Write your PowerShell commands here.
Write-Host "Hello World"
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("$(gacUtil)")
- task: UseDotNet@2
inputs:
version: '2.1.x'
- task: UseDotNet@2
inputs:
version: '3.1.x'
- task: DotNetCoreCLI@2
displayName: 'Build'
inputs:
command: 'build'
arguments: '--configuration $(buildConfiguration) --no-incremental'
projects: |
$(Build.SourcesDirectory)\sln\OData.Pipeline.sln
- task: DotNetCoreCLI@2
displayName: 'Test'
inputs:
command: 'test'
arguments: '--configuration $(buildConfiguration) --no-build --collect "Code coverage"'
projects: |
$(Build.SourcesDirectory)\sln\OData.Pipeline.sln
- task: DotNetCoreCLI@2
condition: eq(variables.buildConfiguration, 'Release')
displayName: 'Test'
inputs:
command: 'test'
arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
projects: |
$(Build.SourcesDirectory)\test\EndToEndTests\Tests\Client\Build.Desktop\Microsoft.Test.OData.Tests.Client.csproj