-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
61 lines (53 loc) · 1.45 KB
/
azure-pipelines.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
trigger:
- main
pool: 'WindowsPool'
variables:
solution: '**/DogusTeknoloji.SmartKPIMiner.Agent.csproj'
testSolution: '**/DogusTeknoloji.SmartKPIMiner.Tests.csproj'
runtime: 'win-x64'
configuration: 'Release'
steps:
- task: replacetokens@3
displayName: 'Replace Variables'
inputs:
targetFiles: '**/appsettings.json'
encoding: 'auto'
writeBOM: true
actionOnMissing: 'warn'
keepToken: false
tokenPrefix: '#{'
tokenSuffix: '}#'
useLegacyPattern: false
enableTelemetry: true
- task: DotNetCoreCLI@2
displayName: 'Restore NuGet Packages'
inputs:
command: 'restore'
projects: '$(solution)'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
displayName: 'Build Smart KPI Miner'
inputs:
command: 'build'
projects: '$(solution)'
arguments: '-c $(configuration) -r $(runtime)'
- task: DotNetCoreCLI@2
displayName: 'Run Unit Tests'
inputs:
command: 'test'
projects: '$(testSolution)'
testRunTitle: 'Generic Unit Tests'
- task: DotNetCoreCLI@2
displayName: 'Take release for Windows x64'
inputs:
command: 'publish'
publishWebProjects: false
projects: '$(solution)'
arguments: '-c $(configuration) -r $(runtime) -o $(Build.ArtifactStagingDirectory)'
zipAfterPublish: false
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifact'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'SmartKPI-Agent'
publishLocation: 'Container'