This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
forked from alec-hs/Flaxs-Arma-Server-Tool-2
-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
64 lines (53 loc) · 1.74 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
62
63
64
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
pool:
vmImage: 'windows-2019'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: 'Use DotNet 3.0'
inputs:
packageType: 'sdk'
version: '3.x'
includePreviewVersions: false
- task: DotNetCoreCLI@2
displayName: 'Dotnet Restore'
inputs:
command: 'restore'
feedsToUse: 'select'
- task: SonarCloudPrepare@1
inputs:
SonarCloud: 'SonarCloud'
organization: 'foxlicorp'
scannerMode: 'MSBuild'
projectKey: 'FASTER_App'
projectName: 'FASTER_App'
projectVersion: '$(Build.BuildNumber)'
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'Dotnet Build $(buildConfiguration)'
- task: SonarCloudAnalyze@1
- task: DotNetCoreCLI@2
displayName: 'Dotnet Publish $(buildConfiguration) x64'
inputs:
command: publish
publishWebProjects: False
arguments: '--configuration $(BuildConfiguration) -r win-x64 --self-contained true --output $(Build.ArtifactStagingDirectory)\Release_x64'
zipAfterPublish: True
- task: DotNetCoreCLI@2
displayName: 'Dotnet Publish $(buildConfiguration) x86'
inputs:
command: publish
publishWebProjects: False
arguments: '--configuration $(BuildConfiguration) -r win-x86 --self-contained true --output $(Build.ArtifactStagingDirectory)\Release_x86'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'FASTER_master_build'
publishLocation: 'Container'