diff options
author | Matthew Strapp <matt@mattstrapp.net> | 2024-10-28 13:37:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 13:37:20 -0500 |
commit | 7f1529eb1c6be69318f95f2ce90b09bcf0eec232 (patch) | |
tree | 72b1a2adb1ac248f6dda903b89e6c77ee84531a0 /bin | |
download | scoop-7f1529eb1c6be69318f95f2ce90b09bcf0eec232.tar scoop-7f1529eb1c6be69318f95f2ce90b09bcf0eec232.tar.gz scoop-7f1529eb1c6be69318f95f2ce90b09bcf0eec232.tar.bz2 scoop-7f1529eb1c6be69318f95f2ce90b09bcf0eec232.tar.lz scoop-7f1529eb1c6be69318f95f2ce90b09bcf0eec232.tar.xz scoop-7f1529eb1c6be69318f95f2ce90b09bcf0eec232.tar.zst scoop-7f1529eb1c6be69318f95f2ce90b09bcf0eec232.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | bin/auto-pr.ps1 | 9 | ||||
-rw-r--r-- | bin/checkhashes.ps1 | 4 | ||||
-rw-r--r-- | bin/checkurls.ps1 | 4 | ||||
-rw-r--r-- | bin/checkver.ps1 | 4 | ||||
-rw-r--r-- | bin/formatjson.ps1 | 4 | ||||
-rw-r--r-- | bin/missing-checkver.ps1 | 4 | ||||
-rw-r--r-- | bin/test.ps1 | 15 |
7 files changed, 44 insertions, 0 deletions
diff --git a/bin/auto-pr.ps1 b/bin/auto-pr.ps1 new file mode 100644 index 0000000..3a91818 --- /dev/null +++ b/bin/auto-pr.ps1 @@ -0,0 +1,9 @@ +param( + # overwrite upstream param + [String]$upstream = "<username>/<bucketname>:main" +) + +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 +& $autopr -Dir $dir -Upstream $Upstream @Args diff --git a/bin/checkhashes.ps1 b/bin/checkhashes.ps1 new file mode 100644 index 0000000..6e7e052 --- /dev/null +++ b/bin/checkhashes.ps1 @@ -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 diff --git a/bin/checkurls.ps1 b/bin/checkurls.ps1 new file mode 100644 index 0000000..4895d54 --- /dev/null +++ b/bin/checkurls.ps1 @@ -0,0 +1,4 @@ +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 +& $checkurls -Dir $dir @Args diff --git a/bin/checkver.ps1 b/bin/checkver.ps1 new file mode 100644 index 0000000..9bce8b4 --- /dev/null +++ b/bin/checkver.ps1 @@ -0,0 +1,4 @@ +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 +& $checkver -Dir $dir @Args diff --git a/bin/formatjson.ps1 b/bin/formatjson.ps1 new file mode 100644 index 0000000..2766bbc --- /dev/null +++ b/bin/formatjson.ps1 @@ -0,0 +1,4 @@ +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 +& $formatjson -Dir $path @Args diff --git a/bin/missing-checkver.ps1 b/bin/missing-checkver.ps1 new file mode 100644 index 0000000..e375704 --- /dev/null +++ b/bin/missing-checkver.ps1 @@ -0,0 +1,4 @@ +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 +& $missing_checkver -Dir $dir @Args diff --git a/bin/test.ps1 b/bin/test.ps1 new file mode 100644 index 0000000..5c64841 --- /dev/null +++ b/bin/test.ps1 @@ -0,0 +1,15 @@ +#Requires -Version 5.1 +#Requires -Modules @{ ModuleName = 'BuildHelpers'; ModuleVersion = '2.0.1' } +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '5.2.0' } + +$pesterConfig = New-PesterConfiguration -Hashtable @{ + Run = @{ + Path = "$PSScriptRoot/.." + PassThru = $true + } + Output = @{ + Verbosity = 'Detailed' + } +} +$result = Invoke-Pester -Configuration $pesterConfig +exit $result.FailedCount |