-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
33 lines (27 loc) · 1.07 KB
/
azure-pipelines.yml
File metadata and controls
33 lines (27 loc) · 1.07 KB
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
pool:
vmImage: 'Ubuntu 16.04'
steps:
- script: dotnet restore
displayName: 'Restoring Packages'
- script: dotnet build --configuration Debug --version-suffix "preview-$(Build.BuildNumber)"
condition: ne(variables['Build.SourceBranch'], 'refs/heads/release')
displayName: 'Building'
- script: dotnet test --no-restore --no-build --logger trx
displayName: 'Run automated tests'
continueOnError: true
- task: PublishTestResults@2
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
failOnStandardError: 'true'
- script: dotnet build --configuration Release
condition: eq(variables['Build.SourceBranch'], 'refs/heads/release')
displayName: 'Building (Release)'
- task: NuGetCommand@2
displayName: 'Publishing Build'
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/release')))
inputs:
command: push
nuGetFeedType: external
publishFeedCredentials: 'AutoSplat.NuGet'
packagesToPush: './Artifacts/**/*.nupkg'