-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathazure-pipelines-IntelliTect.TestTools.Data.yml
61 lines (51 loc) · 1.59 KB
/
azure-pipelines-IntelliTect.TestTools.Data.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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
include:
- main
paths:
include:
- IntelliTect.TestTools.Data/*
- IntelliTect.TestTools.Data.slnf
- Samples/IntelliTect.TestTools.Data.Sample/*
- azure-pipelines-IntelliTect.TestTools.Data.yml
variables:
version: '0.4.0'
BuildConfiguration: Release
pool:
vmImage: 'windows-2022'
steps:
- task: NuGetToolInstaller@1
displayName: 'Use latest NuGet'
- task: NuGetCommand@2
displayName: 'NuGet Restore'
inputs:
command: 'restore'
restoreSolution: '**/IntelliTect.TestTools.sln'
feedsToUse: 'select'
- task: VSBuild@1
displayName: 'Build'
inputs:
solution: '**/IntelliTect.TestTools.Data.slnf'
clean: true
configuration: '$(BuildConfiguration)'
msbuildArgs: '/p:Version=$(version)'
- task: DotNetCoreCLI@2
displayName: 'Test'
inputs:
command: 'test'
projects: '$(System.DefaultWorkingDirectory)/IntelliTect.TestTools.Data.Test/IntelliTect.TestTools.Data.Test.csproj'
- task: PowerShell@2
displayName: 'dotnet pack'
inputs:
targetType: 'inline'
script: dotnet pack $(System.DefaultWorkingDirectory)/IntelliTect.TestTools.Data/ --no-build -c $(BuildConfiguration) -p:Version="$(version)-ci-$(Build.BuildId)" -o $(Build.ArtifactStagingDirectory)
pwsh: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'