mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Merge branch 'feature/v4' of https://github.com/tidusjar/Ombi into feature/v4
This commit is contained in:
commit
2fb0c78c7e
8 changed files with 137 additions and 40 deletions
83
azure-pipelines.yml
Normal file
83
azure-pipelines.yml
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
# ASP.NET Core
|
||||||
|
# Build and test ASP.NET Core projects targeting .NET Core.
|
||||||
|
# Add steps that run tests, create a NuGet package, deploy, and more:
|
||||||
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
- master
|
||||||
|
- feature/v4
|
||||||
|
- develop
|
||||||
|
|
||||||
|
variables:
|
||||||
|
solution: '**/*.sln'
|
||||||
|
testProj: '**/*.Tests.csproj'
|
||||||
|
csProj: '**/*.csproj'
|
||||||
|
buildConfiguration: 'Release'
|
||||||
|
publishLocation: '$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp2.2'
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: CmdLine@2
|
||||||
|
displayName: Run Build Script
|
||||||
|
inputs:
|
||||||
|
script: './build.sh'
|
||||||
|
- task: CmdLine@2
|
||||||
|
inputs:
|
||||||
|
script: |
|
||||||
|
cd src/Ombi/bin/Release/netcoreapp2.2
|
||||||
|
|
||||||
|
ls
|
||||||
|
workingDirectory: '$(Build.SourcesDirectory)'
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: Upload Windows Build
|
||||||
|
inputs:
|
||||||
|
SourceFolder: '$(publishLocation)/windows.zip'
|
||||||
|
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
OverWrite: true
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: Upload OSX Build
|
||||||
|
inputs:
|
||||||
|
SourceFolder: '**/osx.tar.gz'
|
||||||
|
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
OverWrite: true
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: Upload Linux Build
|
||||||
|
inputs:
|
||||||
|
SourceFolder: '$(publishLocation)/linux.tar.gz'
|
||||||
|
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
OverWrite: true
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: Upload Linux-ARM Build
|
||||||
|
inputs:
|
||||||
|
SourceFolder: '$(publishLocation)/linux-arm.tar.gz'
|
||||||
|
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
OverWrite: true
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: Upload Windows 32Bit Build
|
||||||
|
inputs:
|
||||||
|
SourceFolder: '$(publishLocation)/windows-32bit.zip'
|
||||||
|
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
OverWrite: true
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: Upload Linux-ARM64 Build
|
||||||
|
inputs:
|
||||||
|
SourceFolder: '$(publishLocation)/linux-arm64.tar.gz'
|
||||||
|
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
OverWrite: true
|
||||||
|
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
displayName: Upload Test Results
|
||||||
|
inputs:
|
||||||
|
testResultsFormat: 'VSTest'
|
||||||
|
testResultsFiles: '**/Test.trx'
|
||||||
|
mergeTestResults: true
|
||||||
|
failTaskOnFailedTests: true
|
||||||
|
testRunTitle: 'Unit Tests'
|
22
build.cake
22
build.cake
|
@ -1,10 +1,9 @@
|
||||||
|
|
||||||
#tool "nuget:?package=GitVersion.CommandLine&version=4.0.0"
|
#tool "nuget:?package=GitVersion.CommandLine&version=5.0.1"
|
||||||
#addin nuget:?package=SharpZipLib&version=1.1.0
|
#addin nuget:?package=SharpZipLib&version=1.2.0
|
||||||
#addin nuget:?package=Cake.Compression&version=0.2.2
|
#addin nuget:?package=Cake.Compression&version=0.2.3
|
||||||
#addin "Cake.Incubator&version=3.1.0"
|
#addin "Cake.Incubator&version=5.1.0"
|
||||||
#addin nuget:?package=Cake.Yarn&version=0.4.5
|
#addin nuget:?package=Cake.Yarn&version=0.4.6
|
||||||
#addin "Cake.Powershell"
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// ARGUMENTS
|
// ARGUMENTS
|
||||||
|
@ -270,16 +269,7 @@ Task("Upload-Test-Results")
|
||||||
.IsDependentOn("Run-Unit-Tests")
|
.IsDependentOn("Run-Unit-Tests")
|
||||||
.ContinueOnError()
|
.ContinueOnError()
|
||||||
.Does(() => {
|
.Does(() => {
|
||||||
var script = @"
|
|
||||||
$wc = New-Object 'System.Net.WebClient'
|
|
||||||
foreach ($name in Resolve-Path .\src\**\TestResults\Test*.trx)
|
|
||||||
{
|
|
||||||
Write-Host ""Uploading File: "" + $name
|
|
||||||
$wc.UploadFile(""https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)"", $name)
|
|
||||||
}
|
|
||||||
";
|
|
||||||
// Upload the results
|
|
||||||
StartPowershellScript(script);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Run-Server-Build")
|
Task("Run-Server-Build")
|
||||||
|
|
8
build.sh
8
build.sh
|
@ -54,9 +54,9 @@ fi
|
||||||
# Make sure that packages.config exist.
|
# Make sure that packages.config exist.
|
||||||
if [ ! -f "$TOOLS_DIR/packages.config" ]; then
|
if [ ! -f "$TOOLS_DIR/packages.config" ]; then
|
||||||
echo "Downloading packages.config..."
|
echo "Downloading packages.config..."
|
||||||
curl -Lsfo "$TOOLS_DIR/packages.config" http://cakebuild.net/download/bootstrapper/packages
|
curl -Lsfo "$TOOLS_DIR/packages.config" https://cakebuild.net/download/bootstrapper/packages
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "An error occured while downloading packages.config."
|
echo "An error occurred while downloading packages.config."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -66,7 +66,7 @@ if [ ! -f "$NUGET_EXE" ]; then
|
||||||
echo "Downloading NuGet..."
|
echo "Downloading NuGet..."
|
||||||
curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "An error occured while downloading nuget.exe."
|
echo "An error occurred while downloading nuget.exe."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -98,4 +98,4 @@ if $SHOW_VERSION; then
|
||||||
exec mono "$CAKE_EXE" -version
|
exec mono "$CAKE_EXE" -version
|
||||||
else
|
else
|
||||||
exec mono "$CAKE_EXE" $SCRIPT -verbosity=$VERBOSITY -configuration=$CONFIGURATION -target=$TARGET $DRYRUN "${SCRIPT_ARGUMENTS[@]}"
|
exec mono "$CAKE_EXE" $SCRIPT -verbosity=$VERBOSITY -configuration=$CONFIGURATION -target=$TARGET $DRYRUN "${SCRIPT_ARGUMENTS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
38
ci-build.yaml
Normal file
38
ci-build.yaml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# ASP.NET Core
|
||||||
|
# Build and test ASP.NET Core projects targeting .NET Core.
|
||||||
|
# Add steps that run tests, create a NuGet package, deploy, and more:
|
||||||
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branches:
|
||||||
|
include:
|
||||||
|
- feature/*
|
||||||
|
exclude:
|
||||||
|
- feature/v4
|
||||||
|
|
||||||
|
variables:
|
||||||
|
solution: '**/*.sln'
|
||||||
|
testProj: '**/*.Tests.csproj'
|
||||||
|
csProj: '**/*.csproj'
|
||||||
|
buildConfiguration: 'Release'
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: UseDotNet@2
|
||||||
|
displayName: Use dotnet sdk
|
||||||
|
inputs:
|
||||||
|
packageType: 'sdk'
|
||||||
|
version: '2.2.401'
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: Run Unit Tests
|
||||||
|
inputs:
|
||||||
|
command: 'test'
|
||||||
|
projects: '$(testProj)'
|
||||||
|
- task: Yarn@3
|
||||||
|
displayName: Build UI
|
||||||
|
inputs:
|
||||||
|
projectDirectory: '$(Build.SourcesDirectory)/src/Ombi/ClientApp/'
|
||||||
|
arguments: 'run build'
|
|
@ -1,10 +1,10 @@
|
||||||
|
@import '../../../../../../styles/buttons.scss';
|
||||||
@import 'Styles/buttons.scss';
|
|
||||||
|
|
||||||
// border: solid 3px #fff;
|
// border: solid 3px #fff;
|
||||||
.monitored {
|
.monitored {
|
||||||
border: solid 3px $orange !important;
|
border: solid 3px $orange !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.available {
|
.available {
|
||||||
border: solid 3px $green !important;
|
border: solid 3px $green !important;
|
||||||
}
|
}
|
|
@ -1,7 +1,6 @@
|
||||||
import { Component, Input, ViewEncapsulation, OnInit, OnChanges, SimpleChanges } from "@angular/core";
|
import { Component, Input, ViewEncapsulation, OnChanges, SimpleChanges } from "@angular/core";
|
||||||
import { IReleaseGroups } from "../../../../../interfaces/IMusicSearchResultV2";
|
import { IReleaseGroups } from "../../../../../interfaces/IMusicSearchResultV2";
|
||||||
import { SearchV2Service } from "../../../../../services/searchV2.service";
|
import { SearchV2Service } from "../../../../../services/searchV2.service";
|
||||||
import { ActivatedRoute } from "@angular/router";
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./artist-release-panel.component.html",
|
templateUrl: "./artist-release-panel.component.html",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import "./styles.scss";
|
@import "./Styles.scss";
|
||||||
@import "./shared.scss";
|
@import "./shared.scss";
|
||||||
@import "./buttons.scss";
|
@import "./buttons.scss";
|
||||||
@import "./primeng-overrides.scss"
|
@import "./primeng-overrides.scss"
|
|
@ -105,17 +105,4 @@
|
||||||
<Exec WorkingDirectory="$(SpaRoot)" Command="yarn install" />
|
<Exec WorkingDirectory="$(SpaRoot)" Command="yarn install" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
|
|
||||||
<Exec WorkingDirectory="$(SpaRoot)" Command="yarn install" />
|
|
||||||
<Exec WorkingDirectory="$(SpaRoot)" Command="yarn run build --prod" />
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" />
|
|
||||||
<DistFiles Include="$(SpaRoot)node_modules\**" Condition="'$(BuildServerSideRenderer)' == 'true'" />
|
|
||||||
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
|
|
||||||
<RelativePath>%(DistFiles.Identity)</RelativePath>
|
|
||||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
||||||
</ResolvedFileToPublish>
|
|
||||||
</ItemGroup>
|
|
||||||
</Target>
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue