@@ -29,43 +29,14 @@ matrix:
29
29
fast_finish : true
30
30
31
31
for :
32
- -
32
+ - # Visual Studio 2019
33
33
matrix :
34
34
only :
35
35
- image : Visual Studio 2019
36
36
services :
37
37
- postgresql13
38
- - docker
39
38
# REF: https://github.com/docascode/docfx-seed/blob/master/appveyor.yml
40
39
before_build :
41
- - sh : |
42
- # Pull Azure Cosmos Emulator Docker image
43
- echo "Pulling Azure Cosmos Emulator Docker image for Linux ..."
44
- ./pull-docker-azure-cosmos-emulator-linux.sh
45
-
46
- # Start Azure Cosmos Emulator container
47
- echo "Running Azure Cosmos Emulator Docker container ..."
48
- nohup ./run-docker-azure-cosmos-emulator-linux.sh &
49
-
50
- # Wait for Docker container being started in the background
51
- echo "Waiting 60 seconds before trying to download Azure Cosmos Emulator SSL certificate ..."
52
- sleep 60
53
-
54
- # Print the background process output to see whether there are any errors
55
- if [ -f "./nohup.out" ]; then
56
- echo "--- BEGIN CONTENTS OF NOHUP.OUT ---"
57
- cat ./nohup.out
58
- echo "--- END CONTENTS OF NOHUP.OUT ---"
59
- fi
60
-
61
- # Install SSL certificate to be able to access the emulator
62
- echo "Installing Azure Cosmos Emulator SSL certificate ..."
63
- sudo ./install-azure-cosmos-emulator-linux-certificates.sh
64
- - pwsh : |
65
- # Start Azure Cosmos Emulator on Windows
66
- if ($isWindows) {
67
- .\start-cosmos-db-emulator.ps1
68
- }
69
40
- pwsh : |
70
41
if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {
71
42
# https://dotnet.github.io/docfx/tutorial/docfx_getting_started.html
77
48
if ($lastexitcode -ne 0) {
78
49
throw "docfx install failed with exit code $lastexitcode."
79
50
}
51
+ - pwsh : |
52
+ # Start Azure Cosmos Emulator on Windows
53
+ if ($isWindows) {
54
+ .\start-cosmos-db-emulator.ps1
55
+ }
80
56
after_build :
81
57
- pwsh : |
82
58
CD ./docs
@@ -124,6 +100,38 @@ for:
124
100
on :
125
101
branch : /release\/.+/
126
102
appveyor_repo_tag : true
103
+ - # Ubuntu
104
+ matrix :
105
+ only :
106
+ - Ubuntu
107
+ services :
108
+ - postgresql13
109
+ - docker
110
+ before_build :
111
+ - sh : |
112
+ # Start Azure Cosmos Emulator on Linux
113
+ # Pull Azure Cosmos Emulator Docker image
114
+ echo "Pulling Azure Cosmos Emulator Docker image for Linux ..."
115
+ ./pull-docker-azure-cosmos-emulator-linux.sh
116
+
117
+ # Start Azure Cosmos Emulator container
118
+ echo "Running Azure Cosmos Emulator Docker container ..."
119
+ nohup ./run-docker-azure-cosmos-emulator-linux.sh &
120
+
121
+ # Wait for Docker container being started in the background
122
+ echo "Waiting 60 seconds before trying to download Azure Cosmos Emulator SSL certificate ..."
123
+ sleep 60
124
+
125
+ # Print the background process output to see whether there are any errors
126
+ if [ -f "./nohup.out" ]; then
127
+ echo "--- BEGIN CONTENTS OF NOHUP.OUT ---"
128
+ cat ./nohup.out
129
+ echo "--- END CONTENTS OF NOHUP.OUT ---"
130
+ fi
131
+
132
+ # Install SSL certificate to be able to access the emulator
133
+ echo "Installing Azure Cosmos Emulator SSL certificate ..."
134
+ sudo ./install-azure-cosmos-emulator-linux-certificates.sh
127
135
128
136
build_script :
129
137
- pwsh : |
0 commit comments