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

Commit e5bd16f

Browse files
authored
Merge pull request #13 from wintoncode/reinstall-emulator
Reinstall emulator to enable integration tests.
2 parents 25f5610 + ff1ddc5 commit e5bd16f

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

appveyor.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,26 @@ 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: Start-FileDownload "https://aka.ms/cosmosdb-emulator" -FileName "C:\Azure Cosmos DB.Emulator.msi"
15+
- cmd: cmd /c start /wait msiexec /i "C:\Azure Cosmos DB.Emulator.msi" /qn /quiet /norestart /log install.log
16+
- ps: $DebugPreference = 'Continue'
17+
- ps: Import-Module "C:\Program Files\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
18+
- ps: Start-CosmosDbEmulator -NoUI -Timeout 0
1519
before_build:
1620
- dotnet restore
1721
build_script:
1822
- msbuild /p:GetVersion=True /p:WriteVersionInfoToBuildLog=True
1923
test_script:
2024
- dotnet test test/Winton.DomainModelling.DocumentDb.Tests/ --no-build --configuration Release
21-
# - dotnet test test/Winton.DomainModelling.DocumentDb.IntegrationTests/ --no-build --configuration Release
25+
- dotnet test test/Winton.DomainModelling.DocumentDb.IntegrationTests/ --no-build --configuration Release
2226
artifacts:
2327
- path: .\**\*.nupkg
2428
name: NuGet
@@ -31,8 +35,4 @@ deploy:
3135
on:
3236
branch:
3337
- 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-
###############################################################################################################################
38+
- /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)