Skip to content

Commit

Permalink
Do not test decompress if not change
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven committed Mar 21, 2019
1 parent 7429206 commit 7fd9c2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Scoop-Decompress.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function test_extract($extract_fn, $from, $recurse) {
$to
}

Describe "Decompression function" -Tag 'Scoop' {
Describe "Decompression function" -Tag 'Scoop', 'Decompress' {
BeforeAll {
$working_dir = setup_working "decompress"
}
Expand Down
3 changes: 2 additions & 1 deletion test/bin/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ if ($env:CI -eq $true) {
$excludes += 'Scoop'
}

$changed_scripts = (Get-GitChangedFile -Include 'decompress.ps1' -Commit $commit)
$changed_scripts = (Get-GitChangedFile -Include '*decompress.ps1' -Commit $commit)
if (!$changed_scripts) {
Write-Warning "Skipping tests and code linting for decompress.ps1 files because it didn't change"
Write-Host (Get-GitChangedFile -Commit $commit)
$excludes += 'Decompress'
}

Expand Down

0 comments on commit 7fd9c2b

Please sign in to comment.