forked from adventworks/dotnetcore-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci.yml
39 lines (34 loc) · 964 Bytes
/
.vsts-ci.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
# YAML build definition for this app
# This file is needed only when you want to model your build definitions using YAML
queue:
name: Hosted Linux Preview
steps:
- task: dotNetCoreCLI@1
inputs:
command: restore
projects: "**/*.csproj"
displayName: dotnet restore
- task: dotNetCoreCLI@1
inputs:
command: build
projects: "**/*.csproj"
arguments: --configuration release
displayName: dotnet build
- task: dotNetCoreCLI@1
inputs:
command: test
projects: "**/*Tests/*.csproj"
arguments: --configuration release
displayName: dotnet build
- task: dotNetCoreCLI@1
inputs:
command: publish
arguments: --configuration release --output $(Build.ArtifactStagingDirectory)
zipAfterPublish: true
displayName: dotnet publish
- task: publishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: drop
ArtifactType: Container
displayName: Publish the artifacts