Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release/0.2.0-publish-nuget-package #30

Merged
merged 18 commits into from
Feb 14, 2018

Conversation

zabrowarnyrafal
Copy link
Member

zabrowarnyrafal and others added 18 commits February 1, 2018 22:40
…on tests (#1)

* PortWatcher implementation

* PostgresBinaryLocator implementation

* Move code one level up in repo

* PostgresRunner implementation

* Introduced Postgresinitializator process starter; throw exception when process return error code; bum dotnet standard to v2.0; setup basic test

* distinguish pg executables based on os platform; fix long polling of free tcp port

* Added missed binaries of postgres (3 os platforms supported by net core)

* Updated linux based postgres binaries

* Provided sample test suit how to execute pgrunner inside of xunit class fixture

* Removed OSX binaries; OSX as OS Platform won't be supported till issue of it binaries size will be resolved

* Fix Postgres Runner disposable procedure -there are no more thrown exception nor custom finalization; Postgres server start process is not disposable anymore cause it is one time call to pg_ctrl; Postgres server stop process is not throwing exceptions anymore - it should report only own output buffer;

* Added possibility so specify database which will be used to build connection string

* PostgresRunner doesn't use try/catch block in constructor anymore; instead Start() function is responsible for constructing and preparing running PostgresRunner instance; in case when running Postgres failed then PostgresRunner instance should be disposed.

* Provided xunit.runner.visualstudio to Postgres2Go.Samples so tests  can be run directly from IDE (vs or rider)
Corrected licensing
* Moved postgres distributions from tools/ folder to pg-dist/ as tools/ folder is used by Cake build script

* Added Cake build script; removed sln file from root as it was not needed; added sampel unit test

* Set artifacts versions based on output from gitversion

* Added nuspec file; require override nuspec package version through msbuild task; require specify relative path to nuspec file in csproj file or pack task will automatically generate own nuspec
* Create appveyor.yml

* Setup deploys to nuget.org feed, github release; use gitversion output to proper tag appvoyer build, github release, github tag
FrameworkAssemblies in package metadata force nuget validate if project has references to listed assemblies (system.net, system.diagnostics). If project does not referenced them then Postgres2Go cannot be installed. But tyey are not needed to be referenced by project using Postgres2Go.
* Fix: broken sumbolic links in linux pg distribution; it was required to recreate whole lib/ folder
Causes:
* use backslash as parameter switch sometimes outcome with error
* call gitversion in appveyor called in init script (GitTools/GitVersion#1140)
Missed new line characters to separate ps statements
appveyor verbose logging of gitversion execution
Added GitVersion output log to console
@zabrowarnyrafal zabrowarnyrafal merged commit 8ab35e7 into master Feb 14, 2018
@zabrowarnyrafal zabrowarnyrafal deleted the release/0.2.0-publish-nuget-package branch February 14, 2018 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants