Skip to content

Commit 1ca7177

Browse files
committed
new pr piepline
1 parent 429822b commit 1ca7177

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

build/pr.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Pull request validation for Windows against the `future` and `release/*` branches
2+
# See https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema for reference
3+
trigger:
4+
branches:
5+
include:
6+
- main
7+
- release/*
8+
9+
pr:
10+
autoCancel: true # indicates whether additional pushes to a PR should cancel in-progress runs for the same PR. Defaults to true
11+
branches:
12+
include: # branch names which will trigger a build
13+
- main
14+
- release/*
15+
16+
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
17+
18+
variables:
19+
- template: variables/nuget.yml
20+
- name: configuration
21+
value: Release
22+
23+
24+
stages:
25+
- stage: linux
26+
displayName: Linux (Ubuntu)
27+
dependsOn: []
28+
jobs:
29+
# - template: templates/build.yml
30+
# parameters:
31+
# name: 'net_core_tests_ubuntu_22'
32+
# displayName: 'Unit Tests (Ubuntu-22)'
33+
# vmImage: 'ubuntu-22.04'
34+
# scriptFileName: './build.sh'
35+
# scriptArgs: RunTests #' incremental' # Run tests incremental-ly
36+
# outputDirectory: 'TestResults'
37+
# artifactName: 'net_core_tests_ubuntu_22-$(Build.BuildId)'
38+
# packageFeed: $(packageFeed)
39+
- job: ubuntu_22
40+
displayName: 'Ubuntu-22'
41+
timeoutInMinutes: 120
42+
pool:
43+
vmImage: 'ubuntu-22.04'
44+
steps:
45+
- template: templates/install-dotnet.yaml
46+
- template: templates/install-nuget.yaml
47+
- template: templates/restore-nuget-packages.yaml
48+
- task: DotNetCoreCLI@2
49+
displayName: Build
50+
inputs:
51+
command: 'build'
52+
projects: 'DotNetty.sln'
53+
#msbuildArgs: '/p'
54+
#platform: 'Any CPU'
55+
configuration: $(configuration)
56+
#maximumCpuCount: true
57+
- task: DotNetCoreCLI@2
58+
displayName: Test
59+
inputs:
60+
command: 'test'
61+
projects: 'test/DotNetty.Codecs.Http2.Tests/DotNetty.Codecs.Http2.Tests.csproj'
62+
arguments: '--no-build -c $(configuration) -f net6.0 --logger:"console;verbosity=normal" '
63+
publishTestResults: true
64+
65+
66+
# - task: Bash@3
67+
# displayName: Build (Linux)
68+
# inputs:
69+
# filePath: ${{ parameters.scriptFileName }}
70+
# arguments: ${{ parameters.scriptArgs }}
71+
# continueOnError: true
72+
# condition: in( variables['Agent.OS'], 'Linux', 'Darwin' )
73+
74+
# - task: CopyFiles@2
75+
# displayName: 'Copy Build Output'
76+
# inputs:
77+
# sourceFolder: ${{ parameters.outputDirectory }}
78+
# contents: '**\*'
79+
# targetFolder: $(Build.ArtifactStagingDirectory)
80+
# continueOnError: boolean # 'true' if future steps should run even if this step fails; defaults to 'false'
81+
# - task: PublishTestResults@2
82+
# displayName: 'Publish test results'
83+
# inputs:
84+
# testRunner: VSTest
85+
# testResultsFiles: '**/*.trx' #TestResults folder usually
86+
# testRunTitle: ${{ parameters.name }}
87+
# mergeTestResults: true
88+
# failTaskOnFailedTests: false

0 commit comments

Comments
 (0)