ci(test): Use scoop prefix scoop (#3130)

This commit is contained in:
Hsiao-nan Cheung 2021-12-28 15:25:37 +08:00 committed by GitHub
parent 6a663cd0ad
commit e869175e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

16
.vscode/settings.json vendored
View File

@ -1,7 +1,15 @@
// Configure PSScriptAnalyzer settings
{ {
"[powershell]": {
"editor.formatOnSave": true
},
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"json.schemas": [ "json.schemas": [
{ {
"url": "https://raw.githubusercontent.com/lukesampson/scoop/master/schema.json", "url": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
"fileMatch": [ "fileMatch": [
"bucket/*.json" "bucket/*.json"
] ]
@ -9,6 +17,10 @@
], ],
"files.exclude": { "files.exclude": {
"**/.git": true, "**/.git": true,
"**/.DS_Store": true "**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/tmp": true
} }
} }

View File

@ -1,2 +1,2 @@
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
. "$env:SCOOP_HOME\test\Import-Bucket-Tests.ps1" . "$env:SCOOP_HOME\test\Import-Bucket-Tests.ps1"