-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vsts-ci.yml
61 lines (51 loc) · 1.71 KB
/
.vsts-ci.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
57
58
59
60
61
jobs:
- job: Windows
pool:
name: Hosted
variables:
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
steps:
- checkout: self
clean: true
- task: GitVersion@5
inputs:
useConfigFile: true
configFilePath: gitversion.yml
updateAssemblyInfo: false
- task: DotNetCoreInstaller@0
inputs:
version: '2.2.103'
- task: DotNetCoreCLI@2
displayName: .NET Core Build
inputs:
command: build
arguments: --configuration Release "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "-p:PackageVersion=$(GITVERSION.FullSemVer)" "/p:InformationalVersion=$(GITVERSION.InformationalVersion)" /detailedsummary
workingDirectory: $(build.sourcesdirectory)\src
- task: DotNetCoreInstaller@0
inputs:
version: '2.1.504'
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
SignPackageName: "Uno.PackageDiff"
SignPackageDescription: "Uno.PackageDiff"
ArtifactDirectory: $(build.artifactstagingdirectory)
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: unosourcegenerator-drop
ArtifactType: Container
- task: VSTest@2
inputs:
testAssemblyVer2: |
**\*tests.dll
!**\obj\**
vstestLocationMethod: version
vsTestVersion: latest
testSelector: testAssemblies