Skip to content

Commit 32e44ca

Browse files
committed
Hide skipped tests in CI
1 parent 5d52d47 commit 32e44ca

File tree

7 files changed

+17
-6
lines changed

7 files changed

+17
-6
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ task:
2525
tests_script:
2626
- export SKIP_IO_CAPTURE_TESTS=1
2727
- export CI_NO_IPV6=1
28-
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so
28+
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,BORK,WARN,LEAK,XLEAK --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so

.github/actions/test-linux/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ runs:
1818
export PDO_DBLIB_TEST_USER="pdo_test"
1919
export PDO_DBLIB_TEST_PASS="password"
2020
export SKIP_IO_CAPTURE_TESTS=1
21+
export TEST_PHP_JUNIT=junit.out.xml
2122
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
2223
-j$(/usr/bin/nproc) \
23-
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
24+
-g FAIL,BORK,WARN,LEAK,XLEAK \
2425
--offline \
2526
--show-diff \
2627
--show-slow 1000 \
2728
--set-timeout 120
29+
- uses: actions/upload-artifact@v3
30+
if: always()
31+
with:
32+
path: ${{ github.workspace }}/junit.out.xml

.github/actions/test-macos/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ runs:
1111
set -x
1212
export SKIP_IO_CAPTURE_TESTS=1
1313
export CI_NO_IPV6=1
14+
export TEST_PHP_JUNIT=junit.out.xml
1415
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
1516
-j$(sysctl -n hw.ncpu) \
16-
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
17+
-g FAIL,BORK,WARN,LEAK,XLEAK \
1718
--offline \
1819
--show-diff \
1920
--show-slow 1000 \
2021
--set-timeout 120
22+
- uses: actions/upload-artifact@v3
23+
if: always()
24+
with:
25+
path: ${{ github.workspace }}/junit.out.xml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ tmp-php.ini
281281
# GitHub actions cache
282282
# ------------------------------------------------------------------------------
283283
/branch-commit-cache.json
284+
/junit.out.xml
284285

285286
# ------------------------------------------------------------------------------
286287
# Special cases to invert previous ignore patterns

azure/libmysqlclient_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ steps:
3434
export REPORT_EXIT_STATUS=no
3535
rm -rf junit.xml | true
3636
sapi/cli/php run-tests.php -P -q \
37-
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
37+
-g FAIL,BORK,WARN,LEAK,XLEAK \
3838
--offline --show-diff --show-slow 1000 --set-timeout 120 \
3939
ext/pdo_mysql
4040
displayName: 'Test ${{ parameters.configurationName }}'

azure/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ steps:
1818
rm -rf junit.xml | true
1919
sapi/cli/php run-tests.php -P -q \
2020
-j$(/usr/bin/nproc) \
21-
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
21+
-g FAIL,BORK,WARN,LEAK,XLEAK \
2222
--offline \
2323
--show-diff \
2424
--show-slow 1000 \

travis/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
66

77
export SKIP_IO_CAPTURE_TESTS=1
88
./sapi/cli/php run-tests.php -P \
9-
-g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 \
9+
-g "FAIL,BORK,WARN,LEAK" --offline --show-diff --show-slow 1000 \
1010
--set-timeout 120 -j$JOBS \
1111
-d extension=`pwd`/modules/zend_test.so \
1212
-d zend_extension=`pwd`/modules/opcache.so \

0 commit comments

Comments
 (0)