From 157ca8b33789f48e628b8d7ae5ae3bb083e84ffb Mon Sep 17 00:00:00 2001 From: buddsean Date: Fri, 7 May 2021 15:56:45 +1000 Subject: [PATCH 1/2] only run linting diff on branches which arent master --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 4065e1b4f04..da4cc4f1e9d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -176,6 +176,7 @@ test_script: # Flake8 Linting - ps: | + if ($env:APPVEYOR_REPO_BRANCH -ne "master") { $lintOutput = (Resolve-Path .\testOutput\lint\) $lintSource = (Resolve-Path .\tests\lint\) $flake8Output = "$lintOutput\Flake8.txt" @@ -205,6 +206,7 @@ test_script: $wc = New-Object 'System.Net.WebClient' $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $junitXML) if($errorCode -ne 0) { $host.SetShouldExit($errorCode) } + } # System tests - ps: | From b632bc5711ce412b9831b5de262317bec9c0cfe2 Mon Sep 17 00:00:00 2001 From: buddsean Date: Mon, 10 May 2021 10:16:00 +1000 Subject: [PATCH 2/2] only lint try builds --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index da4cc4f1e9d..a66ec823620 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -176,7 +176,7 @@ test_script: # Flake8 Linting - ps: | - if ($env:APPVEYOR_REPO_BRANCH -ne "master") { + if ($env:APPVEYOR_PULL_REQUEST_NUMBER -or $env:APPVEYOR_REPO_BRANCH.StartsWith("try-")) { $lintOutput = (Resolve-Path .\testOutput\lint\) $lintSource = (Resolve-Path .\tests\lint\) $flake8Output = "$lintOutput\Flake8.txt"