-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathappveyor.yml
24 lines (21 loc) · 947 Bytes
/
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
environment:
global:
PACKAGE: "PowerShell"
matrix:
- SUBLIME_TEXT_VERSION: "3"
install:
- ps: |
write-host -ForegroundColor Yellow "Installing Sublime Text 3..."
start-filedownload "https://raw.githubusercontent.com/randy3k/UnitTesting/master/sbin/appveyor.ps1"
.\appveyor.ps1 "bootstrap" -verbose
write-host -ForegroundColor Yellow "Installing pester..."
cinst pester
build: off
test_script:
- ps: |
write-host -ForegroundColor Yellow "Run python tests..."
.\appveyor.ps1 "run_tests" -verbose
write-host -ForegroundColor Yellow "Run pester tests..."
$res = Invoke-Pester -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}