mirror of
https://github.com/jellyfin/TMDbLib.git
synced 2024-11-26 23:30:23 +00:00
Updating standard content files for repository
Update Update Update Alt Alt2 Skipsies
This commit is contained in:
parent
788a5b7850
commit
a0785e50ae
0
.ci-skip-tests
Normal file
0
.ci-skip-tests
Normal file
55
.github/workflows/dotnet.yml
vendored
Normal file
55
.github/workflows/dotnet.yml
vendored
Normal file
@ -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 }}
|
||||
|
35
.github/workflows/nuget.yml
vendored
Normal file
35
.github/workflows/nuget.yml
vendored
Normal file
@ -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
|
12
.gitignore
vendored
12
.gitignore
vendored
@ -1,13 +1,5 @@
|
||||
# Temporary Folders
|
||||
.vs/
|
||||
bin/
|
||||
obj/
|
||||
packages/
|
||||
|
||||
# VS
|
||||
.vs/
|
||||
*.user
|
||||
*.DotSettings
|
||||
|
||||
# Project specific
|
||||
TestApplication/config.json
|
||||
*.lock.json
|
||||
Build/
|
46
Directory.Build.props
Normal file
46
Directory.Build.props
Normal file
@ -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>
|
25
TMDbLib.sln
25
TMDbLib.sln
@ -1,20 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26114.2
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.31105.61
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TMDbLib", "TMDbLib\TMDbLib.csproj", "{A7D4744C-9EF2-4CC3-B786-E8E568874933}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TMDbLib", "TMDbLib\TMDbLib.csproj", "{A7D4744C-9EF2-4CC3-B786-E8E568874933}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApplication", "TestApplication\TestApplication.csproj", "{4C8E1F72-DA9D-4EC6-8C04-5EC8EDC59FA1}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication", "TestApplication\TestApplication.csproj", "{4C8E1F72-DA9D-4EC6-8C04-5EC8EDC59FA1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TMDbLibTests", "TMDbLibTests\TMDbLibTests.csproj", "{228615EB-BFA3-44A7-8648-A7EA48470777}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TMDbLibTests", "TMDbLibTests\TMDbLibTests.csproj", "{228615EB-BFA3-44A7-8648-A7EA48470777}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{26BF5A0A-354A-46F5-A20C-0BEB5D45783A}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
appveyor.yml = appveyor.yml
|
||||
Directory.Build.props = Directory.Build.props
|
||||
Readme.md = Readme.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Imports", "_Imports", "{EAFDB80A-E5BA-42EF-927D-D3E4079EF0FE}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
_Imports\Local.targets = _Imports\Local.targets
|
||||
_Imports\Test.targets = _Imports\Test.targets
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -37,4 +42,10 @@ Global
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{EAFDB80A-E5BA-42EF-927D-D3E4079EF0FE} = {26BF5A0A-354A-46F5-A20C-0BEB5D45783A}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {896D6C40-519C-452C-ADEF-F7A51C6D79B5}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
@ -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,16 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<AssemblyTitle>TMDb Library</AssemblyTitle>
|
||||
<VersionPrefix>1.7.6-alpha</VersionPrefix>
|
||||
<Authors>LordMike;Naliath</Authors>
|
||||
<TargetFrameworks>net45;netstandard2.1;netstandard2.0;netstandard1.2</TargetFrameworks>
|
||||
<AssemblyName>TMDbLib</AssemblyName>
|
||||
<PackageId>TMDbLib</PackageId>
|
||||
<PackageProjectUrl>https://github.com/LordMike/TMDbLib</PackageProjectUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://github.com/LordMike/TMDbLib</RepositoryUrl>
|
||||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
||||
<Description>.NET Client library for The Movie Database (https://www.themoviedb.org/)</Description>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -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,13 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<Import Project="..\_Imports\Test.targets" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
||||
<AssemblyName>TMDbLibTests</AssemblyName>
|
||||
<PackageId>TMDbLibTests</PackageId>
|
||||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
||||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -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>
|
||||
|
21
_Imports/Local.targets
Normal file
21
_Imports/Local.targets
Normal file
@ -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>
|
5
_Imports/Test.targets
Normal file
5
_Imports/Test.targets
Normal file
@ -0,0 +1,5 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
</Project>
|
27
appveyor.yml
27
appveyor.yml
@ -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
|
Loading…
Reference in New Issue
Block a user