mirror of https://github.com/LordMike/TMDbLib.git
Browse Source
Updating standard content files for repository
Updating standard content files for repository
Update Update Update Alt Alt2 Skipsiespull/365/head

15 changed files with 191 additions and 121 deletions
-
0.ci-skip-tests
-
55.github/workflows/dotnet.yml
-
35.github/workflows/nuget.yml
-
12.gitignore
-
46Directory.Build.props
-
25TMDbLib.sln
-
17TMDbLib/Properties/AssemblyInfo.cs
-
9TMDbLib/TMDbLib.csproj
-
18TMDbLibTests/Properties/AssemblyInfo.cs
-
10TMDbLibTests/TMDbLibTests.csproj
-
18TestApplication/Properties/AssemblyInfo.cs
-
14TestApplication/TestApplication.csproj
-
21_Imports/Local.targets
-
5_Imports/Test.targets
-
27appveyor.yml
@ -0,0 +1,55 @@ |
|||
name: Generic Build |
|||
|
|||
on: |
|||
push: |
|||
branches: [ master ] |
|||
pull_request: |
|||
branches: [ master ] |
|||
|
|||
env: |
|||
DOTNET_CLI_TELEMETRY_OPTOUT: true |
|||
DOTNET_NOLOGO: true |
|||
|
|||
jobs: |
|||
build: |
|||
runs-on: ubuntu-latest |
|||
|
|||
steps: |
|||
- uses: actions/checkout@v2 |
|||
with: |
|||
fetch-depth: 50 |
|||
- run: git fetch --tags |
|||
|
|||
- name: Setup .NET |
|||
uses: actions/setup-dotnet@v1 |
|||
with: |
|||
dotnet-version: 5.0.x |
|||
|
|||
- name: Restore dependencies |
|||
run: dotnet restore |
|||
|
|||
- name: Build |
|||
run: dotnet build --no-restore |
|||
|
|||
- name: Test |
|||
run: "[ -f .ci-skip-tests ] && echo 'Skipping tests' || dotnet test --no-build --verbosity normal" |
|||
|
|||
- name: Pack |
|||
if: github.ref == 'refs/heads/master' |
|||
run: dotnet pack -c Debug -o Build |
|||
|
|||
- name: "Github packages: Nuget push" |
|||
if: github.ref == 'refs/heads/master' |
|||
run: dotnet nuget push --no-symbols 1 --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" Build/*.nupkg |
|||
|
|||
- name: "Github packages: Cleanup" |
|||
if: github.ref == 'refs/heads/master' |
|||
uses: stripethree/gpr-janitor@dist |
|||
with: |
|||
dry-run: false |
|||
keep-versions: 25 |
|||
min-age-days: 14 |
|||
versions-to-fetch: 20 |
|||
env: |
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|||
|
@ -0,0 +1,35 @@ |
|||
name: Nuget push (tag) |
|||
|
|||
on: |
|||
push: |
|||
tags: |
|||
- 'v*' |
|||
|
|||
env: |
|||
DOTNET_CLI_TELEMETRY_OPTOUT: true |
|||
DOTNET_NOLOGO: true |
|||
|
|||
jobs: |
|||
build: |
|||
runs-on: ubuntu-latest |
|||
|
|||
steps: |
|||
- uses: actions/checkout@v2 |
|||
# We do not need to fetch tags, as we're already at a tagged build - it should be available automatically |
|||
|
|||
- name: Setup .NET Core 5.0 |
|||
uses: actions/setup-dotnet@v1 |
|||
with: |
|||
dotnet-version: '5.0.x' |
|||
|
|||
- name: Pack |
|||
run: dotnet pack -c Release -o Build |
|||
|
|||
- name: ls |
|||
run: ls -alh Build/ |
|||
|
|||
- name: Nuget push (github) |
|||
run: dotnet nuget push --no-symbols 1 --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" Build/*.nupkg |
|||
|
|||
- name: Nuget push |
|||
run: dotnet nuget push --skip-duplicate -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json Build/*.nupkg |
@ -1,13 +1,5 @@ |
|||
# Temporary Folders |
|||
.vs/ |
|||
bin/ |
|||
obj/ |
|||
packages/ |
|||
|
|||
# VS |
|||
.vs/ |
|||
*.user |
|||
*.DotSettings |
|||
|
|||
# Project specific |
|||
TestApplication/config.json |
|||
*.lock.json |
|||
Build/ |
@ -0,0 +1,46 @@ |
|||
<Project> |
|||
|
|||
<PropertyGroup> |
|||
<LangVersion>latest</LangVersion> |
|||
</PropertyGroup> |
|||
|
|||
<!-- Common NuGet properties --> |
|||
<PropertyGroup> |
|||
<Authors>LordMike</Authors> |
|||
<Company>MBWarez</Company> |
|||
<Copyright>Michael Bisbjerg $([System.DateTime]::Now.ToString(yyyy))</Copyright> |
|||
</PropertyGroup> |
|||
|
|||
<!-- Release stuff --> |
|||
<PropertyGroup> |
|||
<GenerateDocumentationFile>true</GenerateDocumentationFile> |
|||
|
|||
<!-- Ignore warning CS1591 'Missing XML comment for publicly visible type or member' --> |
|||
<NoWarn>$(NoWarn);CS1591</NoWarn> |
|||
|
|||
<DebugType>portable</DebugType> |
|||
<IncludeSymbols>true</IncludeSymbols> |
|||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> |
|||
|
|||
<MinVerTagPrefix>v</MinVerTagPrefix> |
|||
|
|||
<!-- Github packages does not support symbols, so we embed pdbs in nupkg (https://github.community/t/does-github-packages-dotnet-nuget-supports-to-publish-snupkg/123286/6) --> |
|||
<AllowedOutputExtensionsInPackageBuildOutputFolder Condition="'$(Configuration)'=='Debug'">$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<PackageReference Include="MinVer" Version="2.5.0" PrivateAssets="all" /> |
|||
</ItemGroup> |
|||
|
|||
<!-- Sourcelink --> |
|||
<PropertyGroup> |
|||
<PublishRepositoryUrl>true</PublishRepositoryUrl> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/> |
|||
</ItemGroup> |
|||
|
|||
<Import Project="_Imports\Local.targets" Condition="Exists('_Imports\Local.targets')" /> |
|||
|
|||
</Project> |
@ -1,18 +1,3 @@ |
|||
using System.Reflection; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// General Information about an assembly is controlled through the following
|
|||
// set of attributes. Change these attribute values to modify the information
|
|||
// associated with an assembly.
|
|||
[assembly: AssemblyConfiguration("")] |
|||
|
|||
// Setting ComVisible to false makes the types in this assembly not visible
|
|||
// to COM components. If you need to access a type in this assembly from
|
|||
// COM, set the ComVisible attribute to true on that type.
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|||
[assembly: Guid("c8cd805d-f17a-4919-9adb-b5f50d72f32a")] |
|||
using System.Runtime.CompilerServices; |
|||
|
|||
[assembly: InternalsVisibleTo("TMDbLibTests")] |
@ -1,18 +0,0 @@ |
|||
using System.Reflection; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// General Information about an assembly is controlled through the following
|
|||
// set of attributes. Change these attribute values to modify the information
|
|||
// associated with an assembly.
|
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("")] |
|||
[assembly: AssemblyProduct("TMDbLibTests")] |
|||
[assembly: AssemblyTrademark("")] |
|||
|
|||
// Setting ComVisible to false makes the types in this assembly not visible
|
|||
// to COM components. If you need to access a type in this assembly from
|
|||
// COM, set the ComVisible attribute to true on that type.
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|||
[assembly: Guid("228615eb-bfa3-44a7-8648-a7ea48470777")] |
@ -1,18 +0,0 @@ |
|||
using System.Reflection; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// General Information about an assembly is controlled through the following
|
|||
// set of attributes. Change these attribute values to modify the information
|
|||
// associated with an assembly.
|
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("")] |
|||
[assembly: AssemblyProduct("TestApplication")] |
|||
[assembly: AssemblyTrademark("")] |
|||
|
|||
// Setting ComVisible to false makes the types in this assembly not visible
|
|||
// to COM components. If you need to access a type in this assembly from
|
|||
// COM, set the ComVisible attribute to true on that type.
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|||
[assembly: Guid("4c8e1f72-da9d-4ec6-8c04-5ec8edc59fa1")] |
@ -1,22 +1,14 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\_Imports\Test.targets" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>netcoreapp3.0</TargetFramework> |
|||
<AssemblyName>TestApplication</AssemblyName> |
|||
<TargetFramework>net5.0</TargetFramework> |
|||
<OutputType>Exe</OutputType> |
|||
<PackageId>TestApplication</PackageId> |
|||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> |
|||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> |
|||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
|||
<LangVersion>7.1</LangVersion> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\TMDbLib\TMDbLib.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
@ -0,0 +1,21 @@ |
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
|
|||
<!-- Common NuGet properties --> |
|||
<PropertyGroup> |
|||
<Authors>LordMike;Naliath</Authors> |
|||
</PropertyGroup> |
|||
|
|||
<!-- Package --> |
|||
<PropertyGroup> |
|||
<AssemblyTitle>TMDb Library</AssemblyTitle> |
|||
<Product>TMDbLib</Product> |
|||
<PackageLicenseExpression>MIT</PackageLicenseExpression> |
|||
<PackageProjectUrl>https://github.com/LordMike/TMDbLib</PackageProjectUrl> |
|||
</PropertyGroup> |
|||
|
|||
<PropertyGroup> |
|||
<RepositoryUrl>https://github.com/LordMike/TMDbLib</RepositoryUrl> |
|||
<RepositoryType>git</RepositoryType> |
|||
</PropertyGroup> |
|||
|
|||
</Project> |
@ -0,0 +1,5 @@ |
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<IsPackable>false</IsPackable> |
|||
</PropertyGroup> |
|||
</Project> |
@ -1,27 +0,0 @@ |
|||
image: Visual Studio 2019 |
|||
build_script: |
|||
- ps: >- |
|||
[xml]$doc = (Get-Content .\TMDbLib\TMDbLib.csproj) |
|||
|
|||
$version = $doc.Project.PropertyGroup.VersionPrefix |
|||
|
|||
Update-AppveyorBuild -Version "$version build $env:APPVEYOR_BUILD_NUMBER" |
|||
- ps: # Core |
|||
- ps: msbuild /t:Restore |
|||
- ps: # Build Library |
|||
- ps: msbuild /t:Build /p:Configuration=Release TMDbLib |
|||
- ps: # Library |
|||
- ps: msbuild /t:Pack /p:Configuration=Release /p:OutputPath=..\Nuget\ TMDbLib |
|||
- ps: # Test app |
|||
- ps: msbuild /t:Build /p:Configuration=Release TestApplication |
|||
- ps: # Tests |
|||
- ps: msbuild /t:Build /p:Configuration=Release TMDbLibTests |
|||
test: off |
|||
artifacts: |
|||
- path: Nuget\*.nupkg |
|||
deploy: |
|||
- provider: NuGet |
|||
api_key: |
|||
secure: ch6RGtpjkDrtKY80rhqf1WMJjfdEA+0YaeVC5xTexA5V6qU1MjdcF2b7aEMBj0SH |
|||
on: |
|||
branch: nuget |
Write
Preview
Loading…
Cancel
Save
Reference in new issue