Skip to content

Instantly share code, notes, and snippets.

@cmb69

cmb69/.patch Secret

Created June 28, 2021 12:23
Show Gist options
  • Save cmb69/4bfcb3c34ca995ffc2436f40787e932f to your computer and use it in GitHub Desktop.
Save cmb69/4bfcb3c34ca995ffc2436f40787e932f to your computer and use it in GitHub Desktop.
Run bless_tests.php on failing tests on AppVeyor
appveyor/test_task.bat | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/appveyor/test_task.bat b/appveyor/test_task.bat
index 7c559daee9..d9b477847c 100644
--- a/appveyor/test_task.bat
+++ b/appveyor/test_task.bat
@@ -118,4 +118,10 @@ set EXIT_CODE=%errorlevel%
appveyor PushArtifact %TEST_PHP_JUNIT%
+if %EXIT_CODE% GEQ 1 (
+ nmake run ARGS="scripts/dev/bless_tests.php ."
+ git diff > bless_tests.patch
+ appveyor PushArtifact bless_tests.patch
+)
+
exit /b %EXIT_CODE%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment