From 583c94faf0a12b538e111cc9858958b3887dde26 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Tue, 6 Jun 2017 17:04:18 -0500 Subject: [PATCH 1/5] move gatsbygram first --- appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index fdc79c33027fe..04da4b7749cf5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,12 +12,12 @@ environment: nodejs_version: "8" matrix: - - example: client-only-paths - buildon: tag - - example: gatsbygram buildon: commit + - example: client-only-paths + buildon: tag + - example: hn buildon: tag From 18a2aa343a8ce5ce25e5e12519d0061165693897 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Tue, 6 Jun 2017 17:06:41 -0500 Subject: [PATCH 2/5] Add tests for gatsby to install step --- appveyor.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 04da4b7749cf5..525225d008718 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -47,9 +47,6 @@ install: - git checkout 1.0 - echo we are running on %PLATFORM% - npm install - -# Post-install test scripts. -test_script: - node --version - npm --version - npm test From 64ea096605de4a836b6c0e9fccf1d05d2ef052f7 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Tue, 6 Jun 2017 17:34:43 -0500 Subject: [PATCH 3/5] Maybe git checkout is unnecessary --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 525225d008718..c620f3368f1ff 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -44,7 +44,7 @@ install: - ps: Install-Product node $env:nodejs_version $env:platform - ps: npm install -g windows-build-tools - npm install -g gatsby-dev-cli@canary - - git checkout 1.0 + #- git checkout 1.0 - echo we are running on %PLATFORM% - npm install - node --version From 45c34364ade4e3fa42063f557eb4ade1f14bcd80 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Tue, 6 Jun 2017 21:29:08 -0500 Subject: [PATCH 4/5] testing environment variable logic --- appveyor.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index c620f3368f1ff..e092abdd2daa3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,6 +36,16 @@ environment: # Install scripts. (runs after repo cloning) install: - echo This example is built on %buildon% and commit is tag = %APPVEYOR_REPO_TAG% + - ps: | + if ($env:APPVEYOR_REPO_TAG -eq "false") + { + echo "we are testing tag false" + } + - ps: | + if ($env:APPVEYOR_FORCED_BUILD -eq "True") + { + echo "we tested forced builds" + } - ps: | if (($env:buildon -eq "tag") -and ($env:APPVEYOR_REPO_TAG -eq "FALSE")) { From e52623e45c17e9c20a81aa95ba96ebb2aa241a33 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Tue, 6 Jun 2017 22:03:13 -0500 Subject: [PATCH 5/5] all full builds on releases and forced builds --- appveyor.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index e092abdd2daa3..b12601423a517 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,25 +36,15 @@ environment: # Install scripts. (runs after repo cloning) install: - echo This example is built on %buildon% and commit is tag = %APPVEYOR_REPO_TAG% + # we kill the build for most examples unless it is a release or a forced build - ps: | - if ($env:APPVEYOR_REPO_TAG -eq "false") - { - echo "we are testing tag false" - } - - ps: | - if ($env:APPVEYOR_FORCED_BUILD -eq "True") - { - echo "we tested forced builds" - } - - ps: | - if (($env:buildon -eq "tag") -and ($env:APPVEYOR_REPO_TAG -eq "FALSE")) + if (($env:buildon -eq "tag") -and ($env:APPVEYOR_REPO_TAG -eq "false") -and ($env:APPVEYOR_FORCED_BUILD -ne "True")) { Exit-AppVeyorBuild } - ps: Install-Product node $env:nodejs_version $env:platform - ps: npm install -g windows-build-tools - npm install -g gatsby-dev-cli@canary - #- git checkout 1.0 - echo we are running on %PLATFORM% - npm install - node --version