File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
install :
2
- - ps : write-output "installing sublime text 3"
2
+ - ps : write-host -ForegroundColor Yellow "installing sublime text 3"
3
3
- ps : start-filedownload "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203059%20x64.zip"
4
- - ps : write-output "installing Sublime%20Text%20Build%203059%20x64.zip"
4
+ - ps : write-host -ForegroundColor Yellow "installing Sublime%20Text%20Build%203059%20x64.zip"
5
5
- ps : 7z.exe x "Sublime%20Text%20Build%203059%20x64.zip" -o"C:\st" > $null
6
6
- ps : mkdir "C:\st\Data\Packages" -force > $null
7
7
- ps : mkdir "C:\st\Data\Packages\PowerShell" -force > $null
8
8
- ps : cp -Recurse * "C:\st\Data\Packages\PowerShell" -Force
9
9
- ps : git clone -q --branch=master https://github.com/my-personal-forks/UnitTesting.git "C:\st\Data\Packages\UnitTesting"
10
- - ps : write-output "installing pester"
10
+ - ps : write-host -ForegroundColor Yellow "installing pester" -
11
11
- ps : cinst pester
12
12
13
13
build : false
14
14
15
15
test_script :
16
- - ps : C:\st\Data\Packages\UnitTesting\sbin\run.ps1 "PowerShell"
16
+ - ps : write-host -ForegroundColor Yellow "Run python tests"
17
+ - ps : C:\st\Data\Packages\UnitTesting\sbin\run.ps1 "PowerShell"
18
+ - ps : write-host -ForegroundColor Yellow "Run pester tests"
19
+ - ps : $res = Invoke-Pester -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
20
+ - ps : (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
21
+ - ps : if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}
You can’t perform that action at this time.
0 commit comments