-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathappveyor.yml
35 lines (29 loc) · 1005 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
image: Visual Studio 2022
environment:
PATH: $(LOCALAPPDATA)\Google\Cloud SDK\google-cloud-sdk\bin;$(APPDATA)\npm;C:\Python39;$(PATH)
GCLOUD_SDK_INSTALLATION_NO_PROMPT: true
CLOUDSDK_PYTHON: C:\Python39\python.exe
PUBSUB_EMULATOR_HOST: localhost:8681
PUBSUB_PROJECT_ID: emulator
shallow_clone: true
cache:
- packages -> **\packages.config
- '%LocalAppData%\NuGet\Cache'
- $(LOCALAPPDATA)\Google\Cloud SDK
- $(USERPROFILE)\Documents\WindowsPowerShell\Modules
install:
- ps: Install-Module "GoogleCloud"
- ps: Import-Module "GoogleCloud"
- gcloud components install beta --quiet
- gcloud components install pubsub-emulator --quiet
before_build:
- appveyor-retry dotnet restore -v Minimal
build_script:
- dotnet build -c Release --no-restore
test_script:
- ps: |
Start-Job -ScriptBlock {
gcloud beta emulators pubsub start --host-port=localhost:8681 --project=emulator
}
- sleep 10 && echo "Timer finished!"
- dotnet test -c Release --no-restore