-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
58 lines (44 loc) · 1.78 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
# https://aka.ms/yaml
trigger:
- master
# pr:
# autoCancel: true
# branches:
# include: master
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
useGlobalJson: true
- script: dotnet restore
displayName: 'dotnet restore'
- script: dotnet build --no-restore --configuration Release
displayName: 'dotnet build'
# - script: PATH="$PATH:$HOME/.dotnet/tools"
# displayName: 'Adding dotnet global tools to PATH'
- script: dotnet test --no-restore --configuration Release
displayName: 'dotnet test'
- script: dotnet test --no-restore --logger "trx;LogFileName=$(Build.ArtifactStagingDirectory)/testsResults.trx"
displayName: 'dotnet test DEBUG (because not all are compiled in release)'
- task: PublishTestResults@2 # https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=vsts&tabs=yaml
condition: always()
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '$(Build.ArtifactStagingDirectory)/testsResults.trx'
- script: dotnet pack ./src/CodegenUP.DocumentRefLoader/CodegenUP.DocumentRefLoader.csproj --no-restore --configuration Release --output $(Build.ArtifactStagingDirectory)
displayName: 'dotnet pack'
- script: dotnet pack ./src/CodegenUP.Engine/CodegenUP.Engine.csproj --no-restore --configuration Release --output $(Build.ArtifactStagingDirectory)
displayName: 'dotnet pack'
- script: dotnet pack ./src/CodegenUP/CodegenUP.csproj --no-restore --configuration Release --output $(Build.ArtifactStagingDirectory)
displayName: 'dotnet pack'
- task: NuGetToolInstaller@1
inputs:
checkLatest: true
- task: NuGetCommand@2
inputs:
command: push
nuGetFeedType: external
publishFeedCredentials: 'BeeUP - Nuget - Public - OpenSource'