Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.

Commit c26ef20

Browse files
committed
Try reinstalling emulator.
1 parent 25f5610 commit c26ef20

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

appveyor.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,27 @@ environment:
33
CLI_VERSION: latest
44
DOTNET_CLI_TELEMETRY_OPTOUT: 1
55
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
6-
# DOCUMENT_DB_URI: https://localhost:8081
7-
# DOCUMENT_DB_KEY: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
6+
DOCUMENT_DB_URI: https://localhost:8081
7+
DOCUMENT_DB_KEY: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
88
image: Visual Studio 2017
99
configuration:
1010
- Release
1111
skip_tags: true
12-
#install:
13-
# - ps: Start-Process "C:\Program Files\Azure Cosmos DB Emulator\CosmosDB.Emulator.exe" -ArgumentList "/NoExplorer","/NoUI","/NoFirewall"
14-
# - ps: Start-Sleep -s 15
12+
install:
13+
- cmd: wmic product where name="Azure Cosmos DB Emulator" call uninstall
14+
- ps: Remove-Item -Path "C:\Program Files\Azure Cosmos DB Emulator" -Recurse
15+
- ps: Start-FileDownload "https://aka.ms/cosmosdb-emulator" -FileName "C:\Azure Cosmos DB.Emulator.msi"
16+
- cmd: cmd /c start /wait msiexec /i "C:\Azure Cosmos DB.Emulator.msi" /qn /quiet /norestart /log install.log
17+
- ps: $DebugPreference = 'Continue'
18+
- ps: Import-Module "C:\Program Files\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
19+
- ps: Start-CosmosDbEmulator -NoUI -Timeout 0
1520
before_build:
1621
- dotnet restore
1722
build_script:
1823
- msbuild /p:GetVersion=True /p:WriteVersionInfoToBuildLog=True
1924
test_script:
2025
- dotnet test test/Winton.DomainModelling.DocumentDb.Tests/ --no-build --configuration Release
21-
# - dotnet test test/Winton.DomainModelling.DocumentDb.IntegrationTests/ --no-build --configuration Release
26+
- dotnet test test/Winton.DomainModelling.DocumentDb.IntegrationTests/ --no-build --configuration Release
2227
artifacts:
2328
- path: .\**\*.nupkg
2429
name: NuGet
@@ -31,8 +36,4 @@ deploy:
3136
on:
3237
branch:
3338
- master
34-
- /release\/[0-9]\.[0-9]/
35-
36-
###############################################################################################################################
37-
# Commented lines can be uncommented to run integration tests once AppVeyor images have updated to CosmosDB Emulator >= 2.0.0 #
38-
###############################################################################################################################
39+
- /release\/[0-9]\.[0-9]/

src/Winton.DomainModelling.DocumentDb/Winton.DomainModelling.DocumentDb.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<ItemGroup>
3535
<PackageReference Include="GitVersionTask" Version="4.0.0-beta0012" PrivateAssets="All" />
36-
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.1.1" />
36+
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.1.3" />
3737
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />
3838
<PackageReference Include="Winton.DomainModelling.Abstractions" Version="1.1.0" />
3939
</ItemGroup>

0 commit comments

Comments
 (0)