File tree Expand file tree Collapse file tree 5 files changed +78
-33
lines changed
Expand file tree Collapse file tree 5 files changed +78
-33
lines changed Original file line number Diff line number Diff line change 1+ parameters :
2+ name : ' '
3+ vmImage : ' '
4+ scriptFileName : ' '
5+ scriptArgs : ' all'
6+ timeoutInMinutes : 120
7+
8+ jobs :
9+ - job : ${{ parameters.name }}
10+ timeoutInMinutes : ${{ parameters.timeoutInMinutes }}
11+ pool :
12+ vmImage : ${{ parameters.vmImage }}
13+ steps :
14+ - checkout : self # self represents the repo where the initial Pipelines YAML file was found
15+ clean : false # whether to fetch clean each time
16+ submodules : recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
17+ persistCredentials : true
18+ # Linux or macOS
19+ - task : Bash@3
20+ displayName : Linux / OSX Build
21+ inputs :
22+ filePath : ${{ parameters.scriptFileName }}
23+ arguments : ${{ parameters.scriptArgs }}
24+ continueOnError : true
25+ condition : in( variables['Agent.OS'], 'Linux', 'Darwin' )
26+ # Windows
27+ - task : BatchScript@1
28+ displayName : Windows Build
29+ inputs :
30+ filename : ${{ parameters.scriptFileName }}
31+ arguments : ${{ parameters.scriptArgs }}
32+ continueOnError : true
33+ condition : eq( variables['Agent.OS'], 'Windows_NT' )
34+ - task : PublishTestResults@2
35+ inputs :
36+ testRunner : VSTest
37+ testResultsFiles : ' **/*.trx' # TestResults folder usually
38+ testRunTitle : ${{ parameters.name }}
39+ mergeTestResults : true
40+ - script : ' echo 1>&2'
41+ failOnStderr : true
42+ displayName : ' If above is partially succeeded, then fail'
43+ condition : eq(variables['Agent.JobStatus'], 'SucceededWithIssues')
Original file line number Diff line number Diff line change 11# Pull request validation for Linux against the `dev` and `master` branches
22# See https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema for reference
3+ trigger :
4+ branches :
5+ include :
6+ - dev
7+ - master
38
4- pool :
5- vmImage : ubuntu-16.04
9+ name : $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
610
711pr :
812 autoCancel : true # indicates whether additional pushes to a PR should cancel in-progress runs for the same PR. Defaults to true
913 branches :
1014 include : [ dev, master ] # branch names which will trigger a build
1115
12- steps :
13- - checkout : self # self represents the repo where the initial Pipelines YAML file was found
14- clean : false # whether to fetch clean each time
15- submodules : recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
16- persistCredentials : true
17-
18- - task : Bash@3
19- displayName : ' FAKE Build'
20- inputs :
21- filePath : build.sh
22- arguments : all
16+ jobs :
17+ - template : azure-pipeline.template.yaml
18+ parameters :
19+ name : Ubuntu
20+ vmImage : ' ubuntu-16.04'
21+ scriptFileName : ./build.sh
22+ scriptArgs : all
Original file line number Diff line number Diff line change 11# Pull request validation for Windows against the `dev` and `master` branches
22# See https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema for reference
3-
4- pool :
5- vmImage : vs2017-win2016
6- demands : Cmd
3+ trigger :
4+ branches :
5+ include :
6+ - dev
7+ - master
78
89pr :
910 autoCancel : true # indicates whether additional pushes to a PR should cancel in-progress runs for the same PR. Defaults to true
1011 branches :
1112 include : [ dev, master ] # branch names which will trigger a build
1213
13- steps :
14- - checkout : self # self represents the repo where the initial Pipelines YAML file was found
15- clean : false # whether to fetch clean each time
16- submodules : recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
17- persistCredentials : true
14+ name : $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
1815
19- - task : BatchScript@1
20- displayName : ' Run script build.cmd'
21- inputs :
22- filename : build.cmd
23- arguments : all
16+ jobs :
17+ - template : azure-pipeline.template.yaml
18+ parameters :
19+ name : Windows
20+ vmImage : ' vs2017-win2016'
21+ scriptFileName : build.cmd
22+ scriptArgs : all
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ Target "RunTests" (fun _ ->
101101 let runSingleProject project =
102102 let arguments =
103103 match ( hasTeamCity) with
104- | true -> ( sprintf " test -c Release --no-build --logger:\" console;verbosity=normal\" --results-directory %s -- -parallel none -teamcity" ( outputTests))
105- | false -> ( sprintf " test -c Release --no-build --logger:\" console;verbosity=normal\" --results-directory %s -- -parallel none" ( outputTests))
104+ | true -> ( sprintf " test -c Release --no-build --logger:trx --logger: \" console;verbosity=normal\" --results-directory %s -- -parallel none -teamcity" ( outputTests))
105+ | false -> ( sprintf " test -c Release --no-build --logger:trx --logger: \" console;verbosity=normal\" --results-directory %s -- -parallel none" ( outputTests))
106106
107107 let result = ExecProcess( fun info ->
108108 info.FileName <- " dotnet"
Original file line number Diff line number Diff line change 33 <Copyright >Copyright © 2017 Your Company</Copyright >
44 <Authors >Your Authors</Authors >
55 <VersionPrefix >0.1.0</VersionPrefix >
6- <PackageReleaseNotes >Placeholder</PackageReleaseNotes >
7- <PackageIconUrl ></PackageIconUrl >
8- <PackageProjectUrl ></PackageProjectUrl >
9- <PackageLicenseUrl ></PackageLicenseUrl >
6+ <PackageReleaseNotes >First release</PackageReleaseNotes >
7+ <PackageIconUrl >
8+ </PackageIconUrl >
9+ <PackageProjectUrl >
10+ </PackageProjectUrl >
11+ <PackageLicenseUrl >
12+ </PackageLicenseUrl >
1013 <NoWarn >$(NoWarn);CS1591</NoWarn >
1114 </PropertyGroup >
1215 <PropertyGroup >
You can’t perform that action at this time.
0 commit comments