Skip to content

Commit

Permalink
Windows CI log verbosity, CI bat file guard
Browse files Browse the repository at this point in the history
Closes GH-10817
  • Loading branch information
mvorisek authored and iluuu1994 committed Mar 15, 2023
1 parent 471105a commit f42e562
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/scripts/windows/build.bat
@@ -1,5 +1,10 @@
@echo off

if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
echo for CI only
exit /b 3
)

set SDK_REMOTE=https://github.com/php/php-sdk-binary-tools.git
set SDK_BRANCH=%PHP_BUILD_SDK_BRANCH%
set SDK_RUNNER=%PHP_BUILD_CACHE_SDK_DIR%\phpsdk-%PHP_BUILD_CRT%-%PLATFORM%.bat
Expand Down
5 changes: 5 additions & 0 deletions .github/scripts/windows/build_task.bat
@@ -1,5 +1,10 @@
@echo off

if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
echo for CI only
exit /b 3
)

if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin >NUL 2>NUL
if %errorlevel% neq 0 exit /b 3
if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin64 >NUL 2>NUL
Expand Down
5 changes: 5 additions & 0 deletions .github/scripts/windows/test.bat
@@ -1,5 +1,10 @@
@echo off

if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
echo for CI only
exit /b 3
)

set SDK_RUNNER=%PHP_BUILD_CACHE_SDK_DIR%\phpsdk-%PHP_BUILD_CRT%-%PLATFORM%.bat
if not exist "%SDK_RUNNER%" (
echo "%SDK_RUNNER%" doesn't exist
Expand Down
7 changes: 6 additions & 1 deletion .github/scripts/windows/test_task.bat
@@ -1,5 +1,10 @@
@echo off

if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
echo for CI only
exit /b 3
)

set NO_INTERACTION=1
set REPORT_EXIT_STATUS=1
set SKIP_IO_CAPTURE_TESTS=1
Expand Down Expand Up @@ -119,7 +124,7 @@ mkdir c:\tests_tmp

set TEST_PHP_JUNIT=c:\junit.out.xml

nmake test TESTS="%OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set-timeout 120 --temp-source c:\tests_tmp --temp-target c:\tests_tmp --bless %PARALLEL%"
nmake test TESTS="%OPCACHE_OPTS% -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP -q --offline --show-diff --show-slow 1000 --set-timeout 120 --temp-source c:\tests_tmp --temp-target c:\tests_tmp --bless %PARALLEL%"

set EXIT_CODE=%errorlevel%

Expand Down

0 comments on commit f42e562

Please sign in to comment.