mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
build stuff
This commit is contained in:
parent
980d452b7e
commit
b1cf9536df
3 changed files with 47 additions and 18 deletions
39
appveyor.yml
39
appveyor.yml
|
@ -1,13 +1,17 @@
|
||||||
version: 4.0.{build}
|
version: 4.0.{build}
|
||||||
configuration: Release
|
configuration: Release
|
||||||
os: Visual Studio 2017
|
os: Visual Studio 2019
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
nodejs_version: "9.8.0"
|
nodejs_version: "9.8.0"
|
||||||
typescript_version: "3.0.1"
|
typescript_version: "3.0.1"
|
||||||
github_auth_token:
|
github_auth_token:
|
||||||
secure: H/7uCrjmWHGJxgN3l9fbhhdVjvvWI8VVF4ZzQqeXuJwAf+PgSNBdxv4SS+rMQ+RH
|
secure: H/7uCrjmWHGJxgN3l9fbhhdVjvvWI8VVF4ZzQqeXuJwAf+PgSNBdxv4SS+rMQ+RH
|
||||||
sonarrcloudtoken:
|
|
||||||
secure: WGkIog4wuMSx1q5vmSOgIBXMtI/leMpLbZhi9MJnJdBBuDfcv12zwXg3LQwY0WbE
|
|
||||||
|
|
||||||
|
# Do not build on tags (GitHub and BitBucket)
|
||||||
|
skip_tags: true
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Get the latest stable version of Node.js or io.js
|
# Get the latest stable version of Node.js or io.js
|
||||||
|
@ -16,18 +20,25 @@ install:
|
||||||
- cmd: set path=%programfiles(x86)%\\Microsoft SDKs\TypeScript\3.0;%path%
|
- cmd: set path=%programfiles(x86)%\\Microsoft SDKs\TypeScript\3.0;%path%
|
||||||
- cmd: tsc -v
|
- cmd: tsc -v
|
||||||
build_script:
|
build_script:
|
||||||
# - dotnet tool install --global dotnet-sonarscanner
|
- ps: |
|
||||||
#- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet sonarscanner begin /k:"tidusjar_Ombi" /d:sonar.organization="tidusjar-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$env.sonarrcloud_token" /d:sonar.analysis.mode="preview" /d:sonar.github.pullRequest="$env:APPVEYOR_PULL_REQUEST_NUMBER" /d:sonar.github.repository="https://github.com/tidusjar/ombi" /d:sonar.github.oauth="$env.github_auth_token" }
|
$deployBranches = @{
|
||||||
# - ps: if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet sonarscanner begin /k:"tidusjar_Ombi" /d:sonar.organization="tidusjar-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$env.SONARRCLOUDTOKEN" }
|
# 'feature/v4',
|
||||||
- ps: ./build.ps1 --settings_skipverification=true
|
'develop',
|
||||||
# - dotnet sonarscanner end /d:sonar.login="%sonarrcloudtoken%"
|
'master'
|
||||||
|
}
|
||||||
#test:
|
if(env:APPVEYOR_REPO_BRANCH -in $deployBranches) {
|
||||||
# only assemblies to test
|
Write-Output "This is a deployment build"
|
||||||
#assemblies:
|
./build.ps1 --settings_skipverification=true --target=build
|
||||||
#only:
|
}
|
||||||
# - '**\*.Tests.dll'
|
else
|
||||||
|
{
|
||||||
|
Write-Output "This is a not a deployment build"
|
||||||
|
./build.ps1 --settings_skipverification=true --target=build
|
||||||
|
}
|
||||||
|
|
||||||
|
skip_commits:
|
||||||
|
files:
|
||||||
|
- '**/*.md'
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
- cmd: >-
|
- cmd: >-
|
||||||
|
|
23
build.cake
23
build.cake
|
@ -135,7 +135,7 @@ Task("Gulp Publish")
|
||||||
Task("TSLint")
|
Task("TSLint")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
// Yarn.FromPath(uiProjectDir).RunScript("lint");
|
Yarn.FromPath(uiProjectDir).RunScript("lint");
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("PrePublish")
|
Task("PrePublish")
|
||||||
|
@ -263,6 +263,21 @@ Task("Run-Unit-Tests")
|
||||||
DotNetCoreTest(file.FullPath, settings);
|
DotNetCoreTest(file.FullPath, settings);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Task("Run-Server-Build")
|
||||||
|
.Does(() =>
|
||||||
|
{
|
||||||
|
var settings = new DotNetCoreBuildSettings
|
||||||
|
{
|
||||||
|
Framework = frameworkVer,
|
||||||
|
Configuration = "Release",
|
||||||
|
OutputDirectory = Directory(buildDir)
|
||||||
|
};
|
||||||
|
DotNetCoreBuild(csProj, settings);
|
||||||
|
});
|
||||||
|
|
||||||
|
Task("Run-UI-Build")
|
||||||
|
.IsDependentOn("PrePublish");
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// TASK TARGETS
|
// TASK TARGETS
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
@ -270,6 +285,12 @@ Task("Run-Unit-Tests")
|
||||||
Task("Default")
|
Task("Default")
|
||||||
.IsDependentOn("Publish");
|
.IsDependentOn("Publish");
|
||||||
|
|
||||||
|
Task("Build")
|
||||||
|
.IsDependentOn("SetVersionInfo")
|
||||||
|
.IsDependentOn("Run-Unit-Tests")
|
||||||
|
.IsDependentOn("Run-Server-Build")
|
||||||
|
.IsDependentOn("Run-UI-Build");
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// EXECUTION
|
// EXECUTION
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -18,9 +18,6 @@
|
||||||
<PackageReference Include="Nito.AsyncEx" Version="5.0.0-pre-05" />
|
<PackageReference Include="Nito.AsyncEx" Version="5.0.0-pre-05" />
|
||||||
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="1.1.9" />
|
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="1.1.9" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Ombi.Helpers\Ombi.Helpers.csproj" />
|
<ProjectReference Include="..\Ombi.Helpers\Ombi.Helpers.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue