-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build pipeline and nuget package metadata
* Add Azure pipeline for unit testing * Add nuget packages metadata
- Loading branch information
Showing
5 changed files
with
144 additions
and
22 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 |
---|---|---|
@@ -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' |
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
46
src/Eway.Rapid.Abstractions/Eway.Rapid.Abstractions.csproj
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,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> |
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 |
---|---|---|
@@ -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> |