-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathappveyor.yml
32 lines (27 loc) · 1.03 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
version: 1.0.{build}
image: Visual Studio 2019
install:
- ps: Install-Module Pester -Force -SkipPublisherCheck
- ps: Install-Module PsScriptAnalyzer -Force
- ps: Install-Module Foil -Force
build_script:
- ps: |
New-Item -ItemType Directory -Name ChocolateyGet -Path ~\Documents\WindowsPowerShell\Modules\
Copy-Item -Path .\src\* -Destination ~\Documents\WindowsPowerShell\Modules\ChocolateyGet\ -Recurse
Remove-Item -Path $env:ChocolateyInstall -Recurse -Force
test_script:
- ps: |
Invoke-Pester -Configuration (New-PesterConfiguration -Hashtable @{
Run = @{
Exit = $true
}
Output = @{
Verbosity = 'Detailed'
}
TestResult = @{
Enabled = $true
}
})
on_finish:
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\testResults.xml))
- ps: Get-ChildItem $env:ProgramData\chocolatey\logs | %{ Push-AppveyorArtifact $_.FullName -FileName $_.Name }