-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipeline-signalr.yml
27 lines (27 loc) · 1.17 KB
/
azure-pipeline-signalr.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
trigger:
batch: true
stages:
- stage: __default
jobs:
- job: Job
pool:
vmImage: "ubuntu-latest"
steps:
- task: CmdLine@2
inputs:
script: |
dotnet restore $(System.DefaultWorkingDirectory)/Sheaft.sln
dotnet build $(System.DefaultWorkingDirectory)/Sheaft.sln -c Release --no-restore
dotnet test $(System.DefaultWorkingDirectory)/Sheaft.sln -c Release --no-restore --no-build
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Signalr/Sheaft.Web.Signalr.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Signalr/
- task: ArchiveFiles@2
displayName: "Archive SIGNALR"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/build$(Build.BuildId).zip"
- task: PublishBuildArtifacts@1
displayName: "Publish SIGNALR"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/build$(Build.BuildId).zip'
artifactName: 'sheaft-signalr'