Skip to content

Commit f00121c

Browse files
Change appveyor.yml
It seems the before_build bash script was not executed.
1 parent 1e2fa47 commit f00121c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

appveyor.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ image:
44

55
version: '{build}'
66

7-
stack: postgresql 13.4
7+
stack: postgresql 13.4, docker
88

99
environment:
1010
PGUSER: postgres
@@ -38,17 +38,6 @@ for:
3838
- docker
3939
# REF: https://github.com/docascode/docfx-seed/blob/master/appveyor.yml
4040
before_build:
41-
- pwsh: |
42-
if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {
43-
# https://dotnet.github.io/docfx/tutorial/docfx_getting_started.html
44-
git checkout $env:APPVEYOR_REPO_BRANCH -q
45-
}
46-
# Pinning to previous version, because zip of v2.58.8 (released 2d ago) is corrupt.
47-
# Tracked at https://github.com/dotnet/docfx/issues/7689
48-
choco install docfx -y --version 2.58.5
49-
if ($lastexitcode -ne 0) {
50-
throw "docfx install failed with exit code $lastexitcode."
51-
}
5241
- sh: |
5342
# Pull Azure Cosmos Emulator Docker image
5443
echo "Pulling Azure Cosmos Emulator Docker image for Linux ..."
@@ -77,6 +66,17 @@ for:
7766
if ($isWindows) {
7867
.\start-cosmos-db-emulator.ps1
7968
}
69+
- pwsh: |
70+
if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {
71+
# https://dotnet.github.io/docfx/tutorial/docfx_getting_started.html
72+
git checkout $env:APPVEYOR_REPO_BRANCH -q
73+
}
74+
# Pinning to previous version, because zip of v2.58.8 (released 2d ago) is corrupt.
75+
# Tracked at https://github.com/dotnet/docfx/issues/7689
76+
choco install docfx -y --version 2.58.5
77+
if ($lastexitcode -ne 0) {
78+
throw "docfx install failed with exit code $lastexitcode."
79+
}
8080
after_build:
8181
- pwsh: |
8282
CD ./docs

0 commit comments

Comments
 (0)