-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
41 lines (35 loc) · 1.2 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
trigger:
- master
pool:
vmImage: 'windows-latest'
steps:
- script: dotnet build --configuration Debug
displayName: 'Build Debug'
- script: dotnet build --configuration Release
displayName: 'Build Release'
- script: dotnet test --logger trx --framework netcoreapp2.2
- task: PublishTestResults@2
displayName: 'Test NetCore 2.2'
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
- script: dotnet test --logger trx --framework net45
- task: PublishTestResults@2
displayName: 'Test NetFramework'
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
- script: dotnet test --logger trx --framework netcoreapp2.2
- task: PublishTestResults@2
displayName: 'Test NetCore 3.0'
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
- script: dotnet pack --configuration Release # --include-symbols
displayName: 'Pack'
- script: dotnet nuget push src/**/ValidationsCollection*.nupkg -k $(NuGetApiKey) -s https://api.nuget.org/v3/index.json -n true --skip-duplicate
displayName: 'NuGet publish'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))