Skip to content

Commit

Permalink
Add build pipeline and nuget package metadata
Browse files Browse the repository at this point in the history
* Add Azure pipeline for unit testing
* Add nuget packages metadata
  • Loading branch information
yihangYH authored Feb 7, 2022
1 parent f322974 commit 8734b64
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 22 deletions.
37 changes: 37 additions & 0 deletions .azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
pool:
vmImage: ubuntu-latest
demands:
- msbuild
- visualstudio
- vstest
variables:
#Pipeline
poolName: 'ubuntu-latest'
#Build
solution: '**/*.sln'
testConfiguration: 'Debug'
buildPlatform: 'Any CPU'
stages:
- stage: Test
displayName: Unit Test
jobs:
- job: Test
displayName: Unit Test
steps:
- task: NuGetToolInstaller@1
displayName: 'Nuget Installer'
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: DotNetCoreCLI@2
displayName: 'Build Test'
inputs:
command: 'build'
projects: '$(solution)'
arguments: '--configuration $(testConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Unit Test'
inputs:
command: 'test'

projects: 'test/*/*.csproj'
Binary file added images/eway_32-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 37 additions & 9 deletions src/Eway.Rapid.Abstractions/Eway.Rapid.Abstractions.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,41 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Eway.Rapid.Standard.Abstractions</PackageId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Text.Json" Version="5.0.2" />
</ItemGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Eway.Rapid.Standard.Abstractions</PackageId>
<Authors>eWAY</Authors>
<Description>
A .NET standard library to integrate with Eway's Rapid Payment API.

Rapid's .NET Standard implementation is broken down into three packages:

Eway.Rapid.Standard.Extensions.DependencyInjection
Eway.Rapid.Standard
Eway.Rapid.Standard.Abstractions

This package should be used when you want full control of the Http Client, and API calls; but would like to use the pre-defined interface and protocol. The package contains data contracts, models, and Rapid endpoints. Here you may create your own custom HTTP client, and handle API calls in a custom manner.
</Description>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://eway.io/api-v3/</PackageProjectUrl>
<RepositoryUrl>https://github.com/eWAYPayment/eway-rapid-netstandard</RepositoryUrl>
<PackageIcon>eway_32-32.png</PackageIcon>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Text.Json" Version="5.0.2" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\images\eway_32-32.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\LICENSE.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Eway.Rapid.Extensions.Standard.DependencyInjection</PackageId>
<Authors>eWAY</Authors>
<Description>
A .NET standard library to integrate with Eway's Rapid Payment API.

Rapid's .NET Standard implementation is broken down into three packages:

Eway.Rapid.Standard.Extensions.DependencyInjection
Eway.Rapid.Standard
Eway.Rapid.Standard.Abstractions

This package should be used when the host application is using the ASP.NET CORE framework.
It provides dependency injection for the RapidClient, and inherts functionality from the Eway.Rapid.Standard package.
</Description>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://eway.io/api-v3/</PackageProjectUrl>
<RepositoryUrl>https://github.com/eWAYPayment/eway-rapid-netstandard</RepositoryUrl>
<PackageIcon>eway_32-32.png</PackageIcon>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -14,6 +32,17 @@
<ItemGroup>
<ProjectReference Include="..\Eway.Rapid\Eway.Rapid.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\images\eway_32-32.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\LICENSE.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>


54 changes: 41 additions & 13 deletions src/Eway.Rapid/Eway.Rapid.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Eway.Rapid.Standard</PackageId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Eway.Rapid.Abstractions\Eway.Rapid.Abstractions.csproj" />
</ItemGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Eway.Rapid.Standard</PackageId>
<Authors>eWAY</Authors>
<Description>
A .NET standard library to integrate with Eway's Rapid Payment API.

Rapid's .NET Standard implementation is broken down into three packages:

Eway.Rapid.Standard.Extensions.DependencyInjection
Eway.Rapid.Standard
Eway.Rapid.Standard.Abstractions

This package should be used when the host application is not using the ASP.NET CORE framework, or a custom DI framework is preferred (or DI is not used in the application). It provides a implementation for the HTTP Client, and handles API calls on your behalf. The package inherits functionality from the Eway.Rapid.Standard.Abstractions package.
</Description>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://eway.io/api-v3/</PackageProjectUrl>
<RepositoryUrl>https://github.com/eWAYPayment/eway-rapid-netstandard</RepositoryUrl>
<PackageIcon>eway_32-32.png</PackageIcon>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Eway.Rapid.Abstractions\Eway.Rapid.Abstractions.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\images\eway_32-32.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\LICENSE.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>

0 comments on commit 8734b64

Please sign in to comment.