-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
appveyor.yml
20 lines (18 loc) · 915 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: 0.1.11.{build}
build: off
install:
- ps: |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module -Name Pester -Repository PSGallery -Force
Install-Module -Name PSScriptAnalyzer -Repository PSGallery -Force
test_script:
- ps: |
Get-childItem .\ -recurse
$testResultsFile = ".\TestsResults.xml"
$tempModulePath = (Resolve-Path (join-path $PWD '..')).ProviderPath
$env:PSModulePath = "$env:PSModulePath;$tempModulePath"
$res = Invoke-Pester .\Ise_cew\Ise_cew.tests.ps1 -OutputFormat NUnitXml -OutputFile $testResultsFile -PassThru -verbose
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $testResultsFile))
if ($res.FailedCount -gt 0) {
throw "$($res.FailedCount) tests failed."
}