diff options
author | Carlos O'Ryan <coryan@google.com> | 2018-01-05 09:32:50 -0500 |
---|---|---|
committer | Carlos O'Ryan <coryan@google.com> | 2018-01-05 09:32:50 -0500 |
commit | d3acb4ba18a545b168c106d264dd54c591c11cc7 (patch) | |
tree | 308f328cbbc63881efd441c2da0631500aa58391 | |
parent | 9cee677ce40d2412afcb9aa43244ccbe68b772a5 (diff) | |
download | googletest-d3acb4ba18a545b168c106d264dd54c591c11cc7.tar.gz googletest-d3acb4ba18a545b168c106d264dd54c591c11cc7.zip |
Fixed output and test for 'enabled_on_pr'
-rw-r--r-- | appveyor.yml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/appveyor.yml b/appveyor.yml index 804e3ec7..f2cde6d1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -52,15 +52,13 @@ install: - ps: | Write-Output "Compiler: $env:compiler" Write-Output "Generator: $env:generator" - Write-Output "Pull Request: <$env:APPVEYOR_PULL_REQUEST_NUMBER>" - Write-Output "Enabled on PR: <$env:enabled_on_pr>" if (-not (Test-Path env:APPVEYOR_PULL_REQUEST_NUMBER)) { + Write-Output "This is *NOT* a pull request build" + } else { Write-Output "This is a pull request build" if (-not (Test-Path env:enabled_on_pr) -or $env:enabled_on_pr -ne "yes") { Write-Output "PR builds are *NOT* explicitly enabled" } - } else { - Write-Output "This is *NOT* a pull request build" } # git bash conflicts with MinGW makefiles @@ -74,7 +72,7 @@ install: build_script: - ps: | # Only enable some builds for pull requests, the AppVeyor queue is too long. - if (-not (Test-Path env:APPVEYOR_PULL_REQUEST_NUMBER) -And (-not (Test-Path env:enabled_on_pr) -or $env:enabled_on_pr -ne "")) { + if (-not (Test-Path env:APPVEYOR_PULL_REQUEST_NUMBER) -And (-not (Test-Path env:enabled_on_pr) -or $env:enabled_on_pr -ne "yes")) { return } md _build -Force | Out-Null @@ -96,7 +94,7 @@ build_script: test_script: - ps: | # Only enable some builds for pull requests, the AppVeyor queue is too long. - if (-not (Test-Path env:APPVEYOR_PULL_REQUEST_NUMBER) -And (-not (Test-Path env:enabled_on_pr) -or $env:enabled_on_pr -ne "")) { + if (-not (Test-Path env:APPVEYOR_PULL_REQUEST_NUMBER) -And (-not (Test-Path env:enabled_on_pr) -or $env:enabled_on_pr -ne "yes")) { return } if ($env:generator -eq "MinGW Makefiles") { |