Skip to content

Commit de38c8a

Browse files
author
Andrew
authored
Merge pull request #30 from anmenaga/master
Adding integration with Travis CI / Linux
2 parents e8fd146 + bdc6871 commit de38c8a

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: csharp
2+
3+
git:
4+
depth: 1000
5+
6+
os:
7+
- linux
8+
sudo: required
9+
dist: trusty
10+
11+
matrix:
12+
fast_finish: true
13+
14+
install:
15+
- git clone https://github.com/PowerShell/PowerShell.git
16+
- pushd PowerShell/tools
17+
- ./download.sh
18+
- popd
19+
20+
script:
21+
- ulimit -n 4096
22+
- powershell -File ./TravisCI.ps1

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Microsoft.PowerShell.Archive Module
22
[Microsoft.PowerShell.Archive module](https://technet.microsoft.com/en-us/library/dn818910.aspx) contains cmdlets that let you create and extract ZIP archives.
33

4-
|Master |
5-
|:------:|
6-
|[![Build status](https://ci.appveyor.com/api/projects/status/npvhboe2nbdbtteg/branch/master?svg=true)](https://ci.appveyor.com/project/PowerShell/microsoft-powershell-archive/branch/master)|
4+
|AppVeyor (Windows) | Travis CI (Linux) |
5+
|:-------------------:|:------------------:|
6+
|[![Build status](https://ci.appveyor.com/api/projects/status/npvhboe2nbdbtteg/branch/master?svg=true)](https://ci.appveyor.com/project/PowerShell/microsoft-powershell-archive/branch/master)|[![Build Status](https://travis-ci.org/PowerShell/Microsoft.PowerShell.Archive.svg?branch=master)](https://travis-ci.org/PowerShell/Microsoft.PowerShell.Archive)|
77

88
## [Compress-Archive](https://technet.microsoft.com/library/dn841358.aspx) examples
99
1. Create an archive from an entire folder including subdirectories: `Compress-Archive -Path C:\Reference -DestinationPath C:\Archives\Draft.zip`

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 "./Microsoft.PowerShell.Archive/Microsoft.PowerShell.Archive.psd1" -Force
3+
$testResults = Invoke-Pester -Script "./Tests" -OutputFormat NUnitXml -OutputFile $testResultsFile -PassThru
4+
if ($testResults.FailedCount -gt 0) {
5+
throw "$($testResults.FailedCount) tests failed."
6+
}

0 commit comments

Comments
 (0)