|
1 | 1 | steps:
|
2 |
| -- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@2 |
3 |
| - displayName: Install signing plugin |
4 |
| - condition: and(succeeded(), eq(variables['SignType'], 'real')) |
5 |
| - inputs: |
6 |
| - signType: '$(SignType)' |
| 2 | + - task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@2 |
| 3 | + displayName: Install signing plugin |
| 4 | + condition: and(succeeded(), eq(variables['SignType'], 'real')) |
| 5 | + inputs: |
| 6 | + signType: '$(SignType)' |
7 | 7 |
|
8 |
| -- task: DotNetCoreInstaller@0 |
9 |
| - displayName: Install .NET Core SDK 2.2.100 |
10 |
| - inputs: |
11 |
| - packageType: sdk |
12 |
| - version: '2.2.100' |
| 8 | + - task: UseDotNet@2 |
| 9 | + displayName: Use .NET Core SDK 3.1.x |
| 10 | + inputs: |
| 11 | + packageType: sdk |
| 12 | + version: 3.1.x |
13 | 13 |
|
14 |
| -- task: NuGetToolInstaller@0 |
15 |
| - displayName: Install NuGet tool >=4.3.0 |
16 |
| - inputs: |
17 |
| - versionSpec: '>=4.3.0' |
| 14 | + - task: DotNetCoreCLI@2 |
| 15 | + displayName: Restore packages |
| 16 | + inputs: |
| 17 | + command: restore |
| 18 | + projects: 'Git-Credential-Manager.sln' |
| 19 | + arguments: '--configuration=Windows$(configuration)' |
18 | 20 |
|
19 |
| -- task: NuGetCommand@2 |
20 |
| - displayName: Restore packages |
21 |
| - inputs: |
22 |
| - command: restore |
23 |
| - restoreSolution: 'Git-Credential-Manager.sln' |
24 |
| - configuration: 'Windows$(configuration)' |
| 21 | + - task: DotNetCoreCLI@2 |
| 22 | + displayName: Compile common code and Windows Helpers |
| 23 | + inputs: |
| 24 | + command: build |
| 25 | + projects: 'Git-Credential-Manager.sln' |
| 26 | + arguments: '--configuration=Windows$(configuration)' |
25 | 27 |
|
26 |
| -- task: MSBuild@1 |
27 |
| - displayName: Compile common code and Windows helpers |
28 |
| - inputs: |
29 |
| - solution: 'Git-Credential-Manager.sln' |
30 |
| - configuration: 'Windows$(configuration)' |
31 |
| - |
32 |
| -- task: VSTest@2 |
33 |
| - displayName: Run common unit tests |
34 |
| - inputs: |
35 |
| - testAssemblyVer2: | |
36 |
| - out\shared\*.Tests\bin\**\*.Tests.dll |
37 |
| - configuration: 'Windows$(configuration)' |
38 |
| - otherConsoleOptions: '/Framework:.NETCoreApp,Version=2.1' |
39 |
| - testRunTitle: 'Unit tests - common (Windows)' |
40 |
| - |
41 |
| -# Uncomment once Windows helpers have unit tests |
42 |
| -# - task: VSTest@2 |
43 |
| -# displayName: Run helpers unit tests |
44 |
| -# inputs: |
45 |
| -# testAssemblyVer2: | |
46 |
| -# out\windows\*.Tests\bin\**\*.Tests.dll |
47 |
| -# configuration: 'Windows$(configuration)' |
48 |
| -# otherConsoleOptions: '/Framework:.NETFramework,Version=v4.6.1' |
49 |
| -# testRunTitle: 'Unit tests - helpers (Windows)' |
| 28 | + - task: DotNetCoreCLI@2 |
| 29 | + displayName: Run common unit tests |
| 30 | + inputs: |
| 31 | + command: test |
| 32 | + projects: 'Git-Credential-Manager.sln' |
| 33 | + arguments: '--configuration=Mac$(configuration)' |
| 34 | + publishTestResults: true |
| 35 | + testRunTitle: 'Unit tests (Windows)' |
50 | 36 |
|
0 commit comments