This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from Elfocrash/develop
Merge 2.5.0 to master
- Loading branch information
Showing
25 changed files
with
384 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ASP.NET Core | ||
# Build and test ASP.NET Core projects targeting .NET Core. | ||
# Add steps that run tests, create a NuGet package, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core | ||
|
||
pool: | ||
vmImage: 'vs2017-win2016' | ||
|
||
variables: | ||
buildConfiguration: 'Release' | ||
|
||
steps: | ||
- powershell: .\installcosmosemu.ps1 | ||
- script: dotnet build --configuration $(buildConfiguration) | ||
displayName: 'dotnet build $(buildConfiguration)' | ||
- script: dotnet test tests\Cosmonaut.Unit | ||
displayName: 'Running unit tests' | ||
- script: dotnet test tests\Cosmonaut.System | ||
displayName: 'Running integration tests' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Invoke-WebRequest -Uri 'https://aka.ms/cosmosdb-emulator' -OutFile 'cosmos-db.msi' | ||
cmd /c start /wait msiexec /i cosmos-db.msi /qn /quiet /norestart /log install.log | ||
Set-Content -Value '"C:\Program Files\Azure Cosmos DB Emulator\CosmosDB.Emulator.exe" /NoUI /NoExplorer /NoFirewall' -Path .\startCosmosDb.cmd | ||
Start-Process -FilePath .\startCosmosDb.cmd | ||
|
||
$attempt = 0 | ||
$max = 3 | ||
while(!$client.Connected -and $attempt -lt $max) { | ||
try { | ||
$client = New-Object System.Net.Sockets.TcpClient([System.Net.Sockets.AddressFamily]::InterNetwork) | ||
$attempt++; $client.Connect("127.0.0.1", 8081); write-host "CosmosDB started" | ||
} | ||
catch { | ||
if($attempt -eq $max) { | ||
write-host "CosmosDB was not started"; $client.Close(); return | ||
} | ||
[int]$sleepTime = 5*$attempt | ||
write-host "CosmosDB is not started. Retry after $sleepTime seconds..." | ||
sleep $sleepTime; | ||
$client.Close() | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
samples/Cosmonaut.NetCore2WebApi/Contract/EditPersonRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using System; | ||
|
||
namespace Cosmonaut.NetCore2WebApi.Contract | ||
{ | ||
public class EditPersonRequest | ||
|
2 changes: 0 additions & 2 deletions
2
samples/Cosmonaut.NetCore2WebApi/Contract/GetPersonResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using System; | ||
|
||
namespace Cosmonaut.NetCore2WebApi.Contract | ||
{ | ||
public class GetPersonResponse | ||
|
3 changes: 0 additions & 3 deletions
3
samples/Cosmonaut.NetCore2WebApi/Controllers/SampleController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.