Skip to content

Commit 8185fd9

Browse files
committed
Add AppImage to CI
1 parent 0c1b117 commit 8185fd9

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ matrix:
1616
addons:
1717
artifacts:
1818
paths:
19-
- $(ls powershell*{deb,pkg} | tr "\n" ":")
19+
- $(ls powershell*{deb,pkg,AppImage} | tr "\n" ":")
2020
- pester-tests.xml
2121

2222
install:
@@ -37,5 +37,5 @@ script:
3737
- powershell -File tools/travis.ps1
3838
# spellcheck
3939
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
40-
mdspell "**/*.md" --ignore-numbers --ignore-acronyms --report;
40+
mdspell '**/*.md' '!powershell/**/*.md' --ignore-numbers --ignore-acronyms --report;
4141
fi

build.psm1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ function Start-PSPackage {
12261226
[string]$Name = "powershell",
12271227

12281228
# Ubuntu, CentOS, Fedora, OS X, and Windows packages are supported
1229-
[ValidateSet("deb", "osxpkg", "rpm", "msi", "appx", "zip")]
1229+
[ValidateSet("deb", "osxpkg", "rpm", "msi", "appx", "zip", "AppImage")]
12301230
[string[]]$Type,
12311231

12321232
# Generate windows downlevel package
@@ -1340,6 +1340,13 @@ function Start-PSPackage {
13401340
}
13411341
New-AppxPackage @Arguments
13421342
}
1343+
"AppImage" {
1344+
if ($IsUbuntu14) {
1345+
Start-NativeExecution { bash -iex "$PSScriptRoot/tools/appimage.sh" }
1346+
} else {
1347+
Write-Warning "Ignoring AppImage type for non Ubuntu Trusty platform"
1348+
}
1349+
}
13431350
default {
13441351
$Arguments = @{
13451352
Type = $_

tools/travis.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Start-PSPester @pesterParam
113113
if (-not $isPr) {
114114
# Only build packages for branches, not pull requests
115115
Start-PSPackage
116+
Start-PSPackage -Type AppImage
116117
try {
117118
# this throws if there was an error
118119
Test-PSPesterResults

0 commit comments

Comments
 (0)