-
Notifications
You must be signed in to change notification settings - Fork 233
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 #109 from SEEK-Jobs/cross-platform
Cross platform
- Loading branch information
Showing
41 changed files
with
421 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,5 @@ Build/PactNet*.nupkg | |
*.DotSettings | ||
PactNet/Files/pact/ | ||
.vs/ | ||
tools/ | ||
tools/ | ||
build/tools/ |
Binary file not shown.
File renamed without changes.
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="7Zip4Powershell" version="1.8.0" /> | ||
</packages> |
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,47 @@ | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[ValidatePattern('\d\.\d\.*')] | ||
[string] | ||
$ReleaseVersionNumber, | ||
|
||
[switch]$Push, | ||
|
||
[string]$ApiKey | ||
) | ||
|
||
$PSScriptFilePath = (Get-Item $MyInvocation.MyCommand.Path).FullName | ||
|
||
$BuildRoot = Split-Path -Path $PSScriptFilePath -Parent | ||
$SolutionRoot = Split-Path -Path $BuildRoot -Parent | ||
$NuGetExe = Join-Path $BuildRoot -ChildPath '..\.nuget\nuget.exe' | ||
|
||
$StandaloneCoreReleases = @('PactNet-Windows','PactNet-OSX','PactNet-Linux-x64','PactNet-Linux-x86') | ||
|
||
foreach ($StandaloneCoreRelease in $StandaloneCoreReleases) | ||
{ | ||
# Build the NuGet package | ||
$ReleaseSource = $StandaloneCoreRelease.Replace('PactNet-', '').ToLower() | ||
$ProjectPath = Join-Path -Path $SolutionRoot -ChildPath "Build\$ReleaseSource\$StandaloneCoreRelease.nuspec" | ||
& $NuGetExe pack $ProjectPath -Properties Configuration=Release -OutputDirectory $BuildRoot -Version $ReleaseVersionNumber -NoPackageAnalysis -NoDefaultExcludes | ||
if (-not $?) | ||
{ | ||
throw 'The NuGet process returned an error code.' | ||
} | ||
|
||
# Upload the NuGet package | ||
if ($Push) | ||
{ | ||
if($ApiKey) | ||
{ | ||
& $NuGetExe setApiKey $ApiKey | ||
} | ||
|
||
$NuPkgPath = Join-Path -Path $BuildRoot -ChildPath "$StandaloneCoreRelease.$ReleaseVersionNumber.nupkg" | ||
& $NuGetExe push $NuPkgPath | ||
if (-not $?) | ||
{ | ||
throw 'The NuGet process returned an error code.' | ||
} | ||
} | ||
} | ||
|
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,21 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata> | ||
<id>PactNet-Linux-x64</id> | ||
<version>$version$</version> | ||
<authors>seek.com.au</authors> | ||
<owners>seek.com.au</owners> | ||
<licenseUrl>https://github.com/SEEK-Jobs/pact-net/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>https://github.com/SEEK-Jobs/pact-net</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>A .NET version of Pact, which enables consumer driven contract testing. This package contains the 64-bit Linux specific core engine.</description> | ||
<dependencies> | ||
<dependency id="PactNet" version="$version$" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="..\tools\pact-linux-x86_64\**" target="tools\pact-linux-x86_64\" /> | ||
<file src="config.json" target="tools\pact-linux-x86_64\config.json" /> | ||
<file src="PactNet-Linux-x64.targets" target="build\PactNet-Linux-x64.targets" /> | ||
</files> | ||
</package> |
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,18 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="FixFilePermissions" BeforeTargets="BeforeBuild"> | ||
<!-- Ensure the various files are executable. See https://github.com/NuGet/Home/issues/4424 --> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86_64/bin/pact-mock-service" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86_64/bin/pact-provider-verifier" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86_64/lib/ruby/bin/ruby" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86_64/lib/ruby/bin/ruby_environment" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86_64/lib/ruby/bin.real/ruby" /> | ||
</Target> | ||
<ItemGroup> | ||
<CoreLibs Include="$(MSBuildThisFileDirectory)../tools/**" /> | ||
<None Include="@(CoreLibs)"> | ||
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
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,3 @@ | ||
{ | ||
"fileName": "{pactCoreDir}/bin/{script}" | ||
} |
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,21 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata> | ||
<id>PactNet-Linux-x86</id> | ||
<version>$version$</version> | ||
<authors>seek.com.au</authors> | ||
<owners>seek.com.au</owners> | ||
<licenseUrl>https://github.com/SEEK-Jobs/pact-net/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>https://github.com/SEEK-Jobs/pact-net</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>A .NET version of Pact, which enables consumer driven contract testing. This package contains the 32-bit Linux specific core engine.</description> | ||
<dependencies> | ||
<dependency id="PactNet" version="$version$" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="..\tools\pact-linux-x86\**" target="tools\pact-linux-x86\" /> | ||
<file src="config.json" target="tools\pact-linux-x86\config.json" /> | ||
<file src="PactNet-Linux-x86.targets" target="build\PactNet-Linux-x86.targets" /> | ||
</files> | ||
</package> |
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,18 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="FixFilePermissions" BeforeTargets="BeforeBuild"> | ||
<!-- Ensure the various files are executable. See https://github.com/NuGet/Home/issues/4424 --> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86/bin/pact-mock-service" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86/bin/pact-provider-verifier" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86/lib/ruby/bin/ruby" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86/lib/ruby/bin/ruby_environment" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-linux-x86/lib/ruby/bin.real/ruby" /> | ||
</Target> | ||
<ItemGroup> | ||
<CoreLibs Include="$(MSBuildThisFileDirectory)../tools/**" /> | ||
<None Include="@(CoreLibs)"> | ||
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
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,3 @@ | ||
{ | ||
"fileName": "{pactCoreDir}/bin/{script}" | ||
} |
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,21 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata> | ||
<id>PactNet-OSX</id> | ||
<version>$version$</version> | ||
<authors>seek.com.au</authors> | ||
<owners>seek.com.au</owners> | ||
<licenseUrl>https://github.com/SEEK-Jobs/pact-net/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>https://github.com/SEEK-Jobs/pact-net</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>A .NET version of Pact, which enables consumer driven contract testing. This package contains the Mac OSX specific core engine.</description> | ||
<dependencies> | ||
<dependency id="PactNet" version="$version$" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="..\tools\pact-osx\**" target="tools\pact-osx\" /> | ||
<file src="config.json" target="tools\pact-osx\config.json" /> | ||
<file src="PactNet-OSX.targets" target="build\PactNet-OSX.targets" /> | ||
</files> | ||
</package> |
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,18 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="FixFilePermissions" BeforeTargets="BeforeBuild"> | ||
<!-- Ensure the various files are executable. See https://github.com/NuGet/Home/issues/4424 --> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-osx/bin/pact-mock-service" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-osx/bin/pact-provider-verifier" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-osx/lib/ruby/bin/ruby" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-osx/lib/ruby/bin/ruby_environment" /> | ||
<Exec Command="chmod u+x $(MSBuildThisFileDirectory)../tools/pact-osx/lib/ruby/bin.real/ruby" /> | ||
</Target> | ||
<ItemGroup> | ||
<CoreLibs Include="$(MSBuildThisFileDirectory)../tools/**" /> | ||
<None Include="@(CoreLibs)"> | ||
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
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,3 @@ | ||
{ | ||
"fileName": "{pactCoreDir}/bin/{script}" | ||
} |
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,21 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata> | ||
<id>PactNet-Windows</id> | ||
<version>$version$</version> | ||
<authors>seek.com.au</authors> | ||
<owners>seek.com.au</owners> | ||
<licenseUrl>https://github.com/SEEK-Jobs/pact-net/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>https://github.com/SEEK-Jobs/pact-net</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>A .NET version of Pact, which enables consumer driven contract testing. This package contains the Windows specific core engine.</description> | ||
<dependencies> | ||
<dependency id="PactNet" version="$version$" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="..\tools\pact-win32\**" target="tools\pact-win32\" /> | ||
<file src="config.json" target="tools\pact-win32\config.json" /> | ||
<file src="PactNet-Windows.targets" target="build\PactNet-Windows.targets" /> | ||
</files> | ||
</package> |
File renamed without changes.
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,11 @@ | ||
{ | ||
"fileName": "{pactCoreDir}\\lib\\ruby\\bin.real\\ruby.exe", | ||
"arguments": "-rbundler/setup -I\"{pactCoreDir}\\lib\\app\\lib\" \"{pactCoreDir}\\lib\\app\\{script}.rb\"", | ||
"environment": { | ||
"ROOT_PATH": "{pactCoreDir}", | ||
"RUNNING_PATH": "{pactCoreDir}\\bin\\", | ||
"BUNDLE_GEMFILE": "{pactCoreDir}\\lib\\vendor\\Gemfile", | ||
"RUBYLIB": "{pactCoreDir}\\lib\\ruby\\lib\\ruby\\site_ruby\\2.2.0;{pactCoreDir}\\lib\\ruby\\lib\\ruby\\site_ruby\\2.2.0\\i386-mingw32;{pactCoreDir}\\lib\\ruby\\lib\\ruby\\site_ruby;{pactCoreDir}\\lib\\ruby\\lib\\ruby\\vendor_ruby\\2.2.0;{pactCoreDir}\\lib\\ruby\\lib\\ruby\\vendor_ruby\\2.2.0\\i386-mingw32;{pactCoreDir}\\lib\\ruby\\lib\\ruby\\vendor_ruby;{pactCoreDir}\\lib\\ruby\\lib\\ruby\\2.2.0;{pactCoreDir}\\lib\\ruby\\lib\\ruby\\2.2.0\\i386-mingw32", | ||
"SSL_CERT_FILE": "{pactCoreDir}\\lib\\ruby\\lib\\ca-bundle.crt" | ||
} | ||
} |
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.