1
+ environment :
2
+ global :
3
+ PACKAGE : " PowerShell"
4
+ matrix :
5
+ - SUBLIME_TEXT_VERSION : " 3"
6
+
1
7
install :
2
- - ps : write-host -ForegroundColor Yellow "installing sublime text 3"
3
- - ps : start-filedownload "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203059%20x64.zip"
4
- - ps : 7z.exe x "Sublime%20Text%20Build%203059%20x64.zip" -o"C:\st" > $null
5
- - ps : write-host -ForegroundColor Yellow "copying PowerShell package"
6
- - ps : mkdir "C:\st\Data\Packages" -force > $null
7
- - ps : mkdir "C:\st\Data\Packages\PowerShell" -force > $null
8
- - ps : cp -Recurse * "C:\st\Data\Packages\PowerShell" -Force
9
- - ps : write-host -ForegroundColor Yellow "installing UnitTesting package"
10
- - ps : git clone -q --branch=master https://github.com/randy3k/UnitTesting.git "C:\st\Data\Packages\UnitTesting"
11
- - ps : write-host -ForegroundColor Yellow "installing pester"
12
- - ps : cinst pester
8
+ - ps : |
9
+ write-host -ForegroundColor Yellow "Installing Sublime Text 3..."
10
+ start-filedownload "https://raw.githubusercontent.com/randy3k/UnitTesting/master/sbin/appveyor.ps1"
11
+ .\appveyor.ps1 "bootstrap" -verbose
12
+ write-host -ForegroundColor Yellow "Installing pester..."
13
+ cinst pester
13
14
14
- build : false
15
+ build : off
15
16
16
17
test_script :
17
- - ps : write-host -ForegroundColor Yellow "Run python tests"
18
- - ps : C:\st\Data\Packages\UnitTesting\sbin\run.ps1 "PowerShell"
19
- - ps : write-host -ForegroundColor Yellow "Run pester tests"
20
- - ps : $res = Invoke-Pester -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
21
- - ps : (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
22
- - ps : if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}
18
+ - ps : |
19
+ write-host -ForegroundColor Yellow "Run python tests..."
20
+ .\appveyor.ps1 "run_tests" -verbose
21
+ write-host -ForegroundColor Yellow "Run pester tests..."
22
+ $res = Invoke-Pester -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
23
+ (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
24
+ if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}
0 commit comments