-
Notifications
You must be signed in to change notification settings - Fork 26
/
.appveyor.yml
54 lines (51 loc) · 1.63 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
image: Visual Studio 2022
build: off
skip_commits:
files:
- '**/*.md'
- '.vscode/**/*'
clone_folder: '%SCOOP%\buckets\Ash258'
cache:
- '%USERPROFILE%\Documents\WindowsPowerShell\Modules -> .appveyor.yml'
- 'C:\projects\helpers'
matrix:
fast_finish: true
environment:
SCOOP: C:\SCOOP
SCOOP_HOME: '%SCOOP%\apps\scoop\current'
SCOOP_BRANCH: NEW
PATH: '%SCOOP%\shims;%PATH%'
matrix:
- PowerShell: 5
init:
- ps: |
(Get-PSProvider 'FileSystem').Home = 'C:\projects\'
git clone -q --depth=1 --branch $env:SCOOP_BRANCH 'https://github.com/Ash258/Scoop-Core' "$env:SCOOP_HOME"
git clone -q --depth=1 'https://github.com/ScoopInstaller/Main' "$env:SCOOP\buckets\main"
New-Item "$env:SCOOP\shims" -ItemType Directory | Out-Null
Set-Content "$env:SCOOP\shims\shovel.ps1" @'
if (!(Test-Path Variable:PSScriptRoot)) { $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
$path = Join-Path "$PSScriptRoot" "../apps/scoop/current/bin/scoop.ps1"
if($MyInvocation.ExpectingInput) { $input | & $path @args } else { & $path @args }
exit $LASTEXITCODE
'@
shovel config 'dbgBypassArmCheck' $true
shovel config 'aria2-enabled' $false
shovel config 'show_update_log' $false
shovel config 'lastUpdate' '258|2421-12-18 08:50:35'
shovel --version
for:
- matrix:
only:
- PowerShell: 5
install:
- ps: . "${env:SCOOP_HOME}\test\bin\init.ps1"
test_script:
- ps: . "${env:SCOOP_HOME}\test\bin\test.ps1" -TestPath "$env:APPVEYOR_BUILD_FOLDER"
on_finish:
- ps: |
$log = 'Install.log'
if (Test-Path $log) {
Get-Content $log -Raw | Write-Host
Push-AppveyorArtifact $log
}