Skip to content

Commit 5f68dfb

Browse files
author
Andrew
committed
Travis CI - part 3
1 parent 8284e5d commit 5f68dfb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ install:
1818
- popd
1919

2020
script:
21-
- ulimit -n 4096
21+
- ulimit -n 4096
22+
- powershell -File ./travis.ps1

TravisCI.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$testResultsFile = ".\ArchiveTestResults.xml"
2+
Import-Module "C:\projects\Archive-Module\Microsoft.PowerShell.Archive" -Force
3+
$testResults = Invoke-Pester -Script "C:\projects\Archive-Module\Tests" -OutputFormat NUnitXml -OutputFile $testResultsFile -PassThru
4+
if ($testResults.FailedCount -gt 0) {
5+
throw "$($testResults.FailedCount) tests failed."
6+
}

0 commit comments

Comments
 (0)