Skip to content

Commit f9116f3

Browse files
committed
edit ci script
1 parent f361099 commit f9116f3

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

appveyor.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1+
environment:
2+
global:
3+
PACKAGE: "PowerShell"
4+
matrix:
5+
- SUBLIME_TEXT_VERSION: "3"
6+
17
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
1314
14-
build: false
15+
build: off
1516

1617
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

Comments
 (0)