aboutsummaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2018-01-08 10:50:13 -0500
committerGitHub <noreply@github.com>2018-01-08 10:50:13 -0500
commit3d27bdef53a5783a4150f74414d7636b7a5a3851 (patch)
tree49f035d1ec7c94ea6ec80ef13fd3039be025835e /appveyor.yml
parent4371b996edb26f9e61f292285a1d2f71259e72cc (diff)
parent67d6e467285d7765d3df60093d23ba3b86838470 (diff)
downloadgoogletest-3d27bdef53a5783a4150f74414d7636b7a5a3851.tar.gz
googletest-3d27bdef53a5783a4150f74414d7636b7a5a3851.tar.bz2
googletest-3d27bdef53a5783a4150f74414d7636b7a5a3851.zip
Merge pull request #1387 from coryan/optimize-build-matrix-ready
Optimize build matrix on pull requests
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 4e8d6f6e..f73f413b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -11,6 +11,7 @@ environment:
- compiler: msvc-15-seh
generator: "Visual Studio 15 2017 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+ enabled_on_pr: yes
- compiler: msvc-14-seh
generator: "Visual Studio 14 2015"
@@ -43,7 +44,6 @@ environment:
configuration:
- Debug
- #- Release
build:
verbosity: minimal
@@ -52,6 +52,14 @@ install:
- ps: |
Write-Output "Compiler: $env:compiler"
Write-Output "Generator: $env:generator"
+ 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"
+ }
+ }
# git bash conflicts with MinGW makefiles
if ($env:generator -eq "MinGW Makefiles") {
@@ -63,6 +71,10 @@ install:
build_script:
- ps: |
+ # Only enable some builds for pull requests, the AppVeyor queue is too long.
+ if ((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
cd _build
@@ -81,6 +93,10 @@ build_script:
test_script:
- ps: |
+ # Only enable some builds for pull requests, the AppVeyor queue is too long.
+ if ((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") {
return # No test available for MinGW
}