Skip to content

Commit deebe75

Browse files
committed
add tests, run ci build for openapi, use build props for openapi projects
1 parent 7be2088 commit deebe75

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Build.ps1

-8
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ function CreateNuGetPackage {
9393
CheckLastExitCode
9494
}
9595

96-
function LoadOpenApiBranchIfRequired {
97-
if ($env:APPVEYOR_REPO_BRANCH -eq "openapi") {
98-
git fetch origin openapi:openapi
99-
}
100-
}
101-
102-
LoadOpenApiBranchIfRequired
103-
10496
dotnet tool restore
10597
CheckLastExitCode
10698

appveyor.yml

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ for:
3737
services:
3838
- postgresql101
3939
# REF: https://github.com/docascode/docfx-seed/blob/master/appveyor.yml
40+
clone_script:
41+
# This ensures the base branch is loaded which is required for regitlint to run.
42+
- ps: |
43+
git clone --branch=$env:APPVEYOR_REPO_BRANCH [email protected]:$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
44+
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
45+
git checkout -qf FETCH_HEAD
4046
before_build:
4147
- pwsh: |
4248
if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {

0 commit comments

Comments
 (0)