forked from awslabs/amazon-kinesis-client-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
41 lines (40 loc) · 1.17 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
jobs:
- job: Build
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: Release
steps:
- task: UseDotNet@2
displayName: use dotnet 3.1.100
inputs:
packageType: "sdk"
version: "3.1.100"
- task: DotNetCoreCLI@2
displayName: dotnet restore
inputs:
command: 'restore'
verbosityRestore: 'Normal'
- task: DotNetCoreCLI@2
displayName: dotnet build
inputs:
command: 'build'
arguments: "-c $(buildConfiguration)"
- task: DotNetCoreCLI@2
displayName: dotnet test
inputs:
command: 'test'
- task: DotNetCoreCLI@2
displayName: dotnet pack
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
command: pack
configuration: $(buildConfiguration)
packagesToPack: "Bootstrap/Bootstrap.csproj;ClientLibrary/ClientLibrary.csproj;"
nobuild: true
arguments: "-o $(Build.ArtifactStagingDirectory)"
verbosityPack: 'Normal'
- task: PublishBuildArtifacts@1
displayName: "Publish build artifact"
inputs:
artifactName: "packages"