-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvsts-integration.yml
47 lines (38 loc) · 1.11 KB
/
vsts-integration.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
resources:
- repo: self
clean: true
pool:
vmImage: 'windows-latest'
steps:
- powershell: |
(new-object Net.WebClient).DownloadString("https://raw.github.com/tom-englert/BuildScripts/master/BuildScripts.ps1") | iex
Project-SetVersion "Directory.Build.props" | Build-AppendVersionToBuildNumber
displayName: 'Patch version'
- task: MSBuild@1
displayName: 'Build Solution'
inputs:
solution: 'Fody.sln'
platform: 'any cpu'
configuration: 'release'
msbuildArguments: '-restore'
clean: true
- task: VSTest@2
displayName: 'VsTest - testAssemblies'
inputs:
testAssemblyVer2: |
**\release\*test*.dll
!**\obj\**
platform: 'any cpu'
configuration: 'release'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: 'nugets\*.nupkg'
TargetFolder: '$(build.artifactstagingdirectory)'
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: nuget'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: nuget