Skip to content

Commit

Permalink
Update appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arawn-Davies authored Jun 23, 2021
1 parent 4d14d87 commit 140b940
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ init:
install:
- ps: |
$range = "$env:APPVEYOR_REPO_BRANCH..$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT"
if (-not (git diff --name-only --diff-filter=d $range | Where-Object { $_ -NotMatch "md|yml$" })) {
Write-Host "Only Markdown files were modified, skipping CI run."
if (-not (git diff --name-only --diff-filter=d $range | Where-Object { $_ -NotLike "/Source/Archive|/Users|/Docs|/.github|/Artwork|.gitignore|md|yml|txt$" })) {
Write-Host "Only Markdown or YAML files were modified, skipping CI run."
Exit-AppVeyorBuild
}
Expand Down Expand Up @@ -47,6 +47,7 @@ test_script:
on_finish:
- ps: |
$tests = "c:\Cosmos\TestResult.xml"
Write-Host "Check if Tests were performed on build, skipping if md/yml files edited"
if ((Test-Path $tests)) {
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", "c:\Cosmos\TestResult.xml")
Expand Down

0 comments on commit 140b940

Please sign in to comment.