mirror of
https://github.com/laoxong/ScoopBucket
synced 2026-06-04 03:08:21 +08:00
(chore): Update CI and templates
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ param(
|
||||
[String]$upstream = "<username>/<bucketname>:main"
|
||||
)
|
||||
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Convert-Path (scoop prefix scoop) }
|
||||
$autopr = "$env:SCOOP_HOME/bin/auto-pr.ps1"
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$autopr' -dir '$dir' -upstream $upstream $($args | ForEach-Object { "$_ " })"
|
||||
& $autopr -Dir $dir -Upstream $Upstream @Args
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Convert-Path (scoop prefix scoop) }
|
||||
$checkhashes = "$env:SCOOP_HOME/bin/checkhashes.ps1"
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
& $checkhashes -Dir $dir @Args
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Convert-Path (scoop prefix scoop) }
|
||||
$checkurls = "$env:SCOOP_HOME/bin/checkurls.ps1"
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$checkurls' -dir '$dir' $($args | ForEach-Object { "$_ " })"
|
||||
& $checkurls -Dir $dir @Args
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Convert-Path (scoop prefix scoop) }
|
||||
$checkver = "$env:SCOOP_HOME/bin/checkver.ps1"
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })"
|
||||
& $checkver -Dir $dir @Args
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Convert-Path (scoop prefix scoop) }
|
||||
$formatjson = "$env:SCOOP_HOME/bin/formatjson.ps1"
|
||||
$path = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$formatjson' -dir '$path' $($args | ForEach-Object { "$_ " })"
|
||||
& $formatjson -Dir $path @Args
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Convert-Path (scoop prefix scoop) }
|
||||
$missing_checkver = "$env:SCOOP_HOME/bin/missing-checkver.ps1"
|
||||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir
|
||||
Invoke-Expression -command "& '$missing_checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })"
|
||||
& $missing_checkver -Dir $dir @Args
|
||||
|
||||
+13
-3
@@ -1,5 +1,15 @@
|
||||
#Requires -Modules @{ ModuleName = 'Pester'; MaximumVersion = '4.99' }
|
||||
#Requires -Version 5.1
|
||||
#Requires -Modules @{ ModuleName = 'BuildHelpers'; ModuleVersion = '2.0.1' }
|
||||
#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '5.2.0' }
|
||||
|
||||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
|
||||
$result = Invoke-Pester "$PSScriptRoot/.." -PassThru
|
||||
$pesterConfig = New-PesterConfiguration -Hashtable @{
|
||||
Run = @{
|
||||
Path = "$PSScriptRoot/.."
|
||||
PassThru = $true
|
||||
}
|
||||
Output = @{
|
||||
Verbosity = 'Detailed'
|
||||
}
|
||||
}
|
||||
$result = Invoke-Pester -Configuration $pesterConfig
|
||||
exit $result.FailedCount
|
||||
|
||||
Reference in New Issue
Block a user