aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.builds/.run-tests.yml28
-rw-r--r--.github/workflows/run-tests.yml25
-rw-r--r--.gitignore1
-rw-r--r--LICENSE_NOTICES4
-rw-r--r--README.md8
-rw-r--r--src/IOL.VippsEcommerce/IOL.VippsEcommerce.csproj6
6 files changed, 37 insertions, 35 deletions
diff --git a/.builds/.run-tests.yml b/.builds/.run-tests.yml
new file mode 100644
index 0000000..c043173
--- /dev/null
+++ b/.builds/.run-tests.yml
@@ -0,0 +1,28 @@
+image: alpine/latest
+packages:
+ - bash
+ - icu-libs
+ - krb5-libs
+ - libgcc
+ - libintl
+ - libssl1.1
+ - libssl1.1
+ - zlib
+sources:
+ - https://git.sr.ht/~ivar/IOL.VippsEcommerce
+tasks:
+ - install-dotnet: |
+ wget https://dot.net/v1/dotnet-install.sh
+ chmod +x dotnet-install.sh
+ bash dotnet-install.sh -c 5.0
+ - display-dotnet-info: |
+ $HOME/.dotnet/dotnet --info
+ - restore: |
+ cd $HOME/IOL.VippsEcommerce
+ $HOME/.dotnet/dotnet restore src/IOL.VippsEcommerce.Tests/IOL.VippsEcommerce.Tests.csproj
+ - build: |
+ cd $HOME/IOL.VippsEcommerce
+ $HOME/.dotnet/dotnet build --no-restore src/IOL.VippsEcommerce.Tests/IOL.VippsEcommerce.Tests.csproj
+ - test: |
+ cd $HOME/IOL.VippsEcommerce
+ $HOME/.dotnet/dotnet test --no-build --verbosity normal src/IOL.VippsEcommerce.Tests/IOL.VippsEcommerce.Tests.csproj
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
deleted file mode 100644
index d63f071..0000000
--- a/.github/workflows/run-tests.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: .NET
-
-on:
- release:
- types: [created]
- pull_request:
- branches: [ master ]
-
-jobs:
- build:
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2
- - name: Setup .NET
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: 5.0.x
- - name: Restore dependencies
- run: dotnet restore src/IOL.VippsEcommerce.Tests/IOL.VippsEcommerce.Tests.csproj
- - name: Build
- run: dotnet build --no-restore src/IOL.VippsEcommerce.Tests/IOL.VippsEcommerce.Tests.csproj
- - name: Test
- run: dotnet test --no-build --verbosity normal src/IOL.VippsEcommerce.Tests/IOL.VippsEcommerce.Tests.csproj
diff --git a/.gitignore b/.gitignore
index 340e2ec..dd3eec9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -91,7 +91,6 @@ StyleCopReport.xml
*.log
*.vspscc
*.vssscc
-.builds
*.pidb
*.svclog
*.scc
diff --git a/LICENSE_NOTICES b/LICENSE_NOTICES
index c37df05..fdbdf58 100644
--- a/LICENSE_NOTICES
+++ b/LICENSE_NOTICES
@@ -4,12 +4,12 @@ be distributed under licenses different than the IOL.VippsEcommerce software.
In the event that we accidentally failed to list a required notice,
please bring it to our attention through any of the ways detailed here:
- https://github.com/ivarlovlie/IOL.VippsEcommerce/issues
+ ivar@ivarlovlie.no
The attached notices are provided for information only.
For any licenses that require disclosure of source, sources are available at
-https://github.com/ivarlovlie/IOL.VippsEcommerce/.
+https://git.sr.ht/~ivar/IOL.VippsEcommerce/.
License Notice for Microsoft.NET.Sdk
---------------------------
diff --git a/README.md b/README.md
index d1798dd..98f502a 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-Implements https://vippsas.github.io/vipps-ecom-api/, more or less (see [IVippsEcommerceService.cs](https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/src/IOL.VippsEcommerce/IVippsEcommerceService.cs)).
+Implements https://vippsas.github.io/vipps-ecom-api/, more or less (see [IVippsEcommerceService.cs](https://git.sr.ht/~ivar/IOL.VippsEcommerce/tree/master/item/src/IOL.VippsEcommerce/VippsEcommerceService.cs)).
`dotnet add package IOL.VippsEcommerce`
@@ -19,15 +19,15 @@ services.AddVippsEcommerceService(o => {
});
```
-See [VippsConfiguration.cs](https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs) for available properties.
-You can configure how to get values with the `ConfigurationMode` property, valid modes is specified in [VippsConfigurationMode.cs](https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/src/IOL.VippsEcommerce/Models/VippsConfigurationMode.cs), example:
+See [VippsConfiguration.cs](https://git.sr.ht/~ivar/IOL.VippsEcommerce/tree/master/item/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs) for available properties.
+You can configure how to get values with the `ConfigurationMode` property, valid modes is specified in [VippsConfigurationMode.cs](https://git.sr.ht/~ivar/IOL.VippsEcommerce/tree/master/item/src/IOL.VippsEcommerce/Models/VippsConfigurationMode.cs), example:
```csharp
services.AddVippsEcommerceService(o => {
o.ConfigurationMode = VippsConfigurationMode.ENVIRONMENT_THEN_OBJECT;
});
```
-With the above example, the service will look for configuration values in the current environment using names specified in [VippsConfigurationKeyNames.cs](https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/src/IOL.VippsEcommerce/Models/VippsConfigurationKeyNames.cs), then in the configuration object. The environment variable name for a given property is also specified in it's XML-documentation.
+With the above example, the service will look for configuration values in the current environment using names specified in [VippsConfigurationKeyNames.cs](https://git.sr.ht/~ivar/IOL.VippsEcommerce/tree/master/item/src/IOL.VippsEcommerce/Models/VippsConfigurationKeyNames.cs), then in the configuration object. The environment variable name for a given property is also specified in it's XML-documentation.
> [Environment.GetEnvironmentVariable](https://docs.microsoft.com/en-us/dotnet/api/system.environment.getenvironmentvariable?view=net-5.0) is used to retrieve environment variables, that means that user-secrets and anything else than process-spesific variables (`VARIABLE=value dotnet YourBinary.dll`) does not register on Unix systems.
diff --git a/src/IOL.VippsEcommerce/IOL.VippsEcommerce.csproj b/src/IOL.VippsEcommerce/IOL.VippsEcommerce.csproj
index 9bc526b..0643154 100644
--- a/src/IOL.VippsEcommerce/IOL.VippsEcommerce.csproj
+++ b/src/IOL.VippsEcommerce/IOL.VippsEcommerce.csproj
@@ -5,9 +5,9 @@
<Authors>Ivar Løvlie</Authors>
<Description>Dotnet classlib for communicating with the vipps e-commerce api.</Description>
<Summary>Dotnet classlib for communicating with the vipps e-commerce api.</Summary>
- <PackageProjectUrl>https://github.com/ivarlovlie/IOL.VippsEcommerce</PackageProjectUrl>
- <PackageLicenseUrl>https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/LICENSE</PackageLicenseUrl>
- <RepositoryUrl>https://github.com/ivarlovlie/IOL.VippsEcommerce</RepositoryUrl>
+ <PackageProjectUrl>https://git.sr.ht/~ivar/IOL.VippsEcommerce</PackageProjectUrl>
+ <PackageLicenseUrl>https://git.sr.ht/~ivar/IOL.VippsEcommerce/tree/master/item/LICENSE</PackageLicenseUrl>
+ <RepositoryUrl>https://git.sr.ht/~ivar/IOL.VippsEcommerce</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>dotnet;vipps-api</PackageTags>
<TargetFramework>net5.0</TargetFramework>