Skip to content

Commit b5a7f7c

Browse files
committed
test
1 parent 1e33be5 commit b5a7f7c

File tree

1 file changed

+0
-79
lines changed

1 file changed

+0
-79
lines changed

.github/nightly.php

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ function e(string $cmd, string $extra = ''): string {
2626

2727
$repos = [];
2828

29-
/*$repos["phpunit"] = [
30-
"https://github.com/sebastianbergmann/phpunit.git",
31-
"main",
32-
null,
33-
["./phpunit"],
34-
1
35-
];*/
36-
3729
$repos["psalm"] = [
3830
"https://github.com/vimeo/psalm",
3931
"master",
@@ -53,77 +45,6 @@ function (): iterable {
5345
1
5446
];
5547

56-
/*
57-
$repos["wordpress"] = [
58-
"https://github.com/WordPress/wordpress-develop.git",
59-
"",
60-
function (): void {
61-
$f = file_get_contents('wp-tests-config-sample.php');
62-
$f = str_replace('youremptytestdbnamehere', 'test', $f);
63-
$f = str_replace('yourusernamehere', 'root', $f);
64-
$f = str_replace('yourpasswordhere', 'root', $f);
65-
file_put_contents('wp-tests-config.php', $f);
66-
},
67-
["vendor/bin/phpunit"],
68-
1
69-
];
70-
71-
foreach (['amp', 'cache', 'dns', 'file', 'http', 'parallel', 'parser', 'pipeline', 'process', 'serialization', 'socket', 'sync', 'websocket-client', 'websocket-server'] as $repo) {
72-
$repos["amphp-$repo"] = ["https://github.com/amphp/$repo.git", "", null, ["vendor/bin/phpunit"], 1];
73-
}
74-
75-
$repos["laravel"] = [
76-
"https://github.com/laravel/framework.git",
77-
"master",
78-
function (): void {
79-
$c = file_get_contents("tests/Filesystem/FilesystemTest.php");
80-
$c = str_replace("public function testSharedGet()", "#[\\PHPUnit\\Framework\\Attributes\\Group('skip')]\n public function testSharedGet()", $c);
81-
file_put_contents("tests/Filesystem/FilesystemTest.php", $c);
82-
},
83-
["vendor/bin/phpunit", "--exclude-group", "skip"],
84-
1
85-
];
86-
87-
foreach (['async', 'cache', 'child-process', 'datagram', 'dns', 'event-loop', 'promise', 'promise-stream', 'promise-timer', 'stream'] as $repo) {
88-
$repos["reactphp-$repo"] = ["https://github.com/reactphp/$repo.git", "", null, ["vendor/bin/phpunit"], 1];
89-
}
90-
91-
$repos["revolt"] = ["https://github.com/revoltphp/event-loop.git", "", null, ["vendor/bin/phpunit"], 2];
92-
93-
$repos["symfony"] = [
94-
"https://github.com/symfony/symfony.git",
95-
"",
96-
function (): void {
97-
e("php ./phpunit install");
98-
99-
// Test causes a heap-buffer-overflow but I cannot reproduce it locally...
100-
$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php");
101-
$c = str_replace("public function testSanitizeDeepNestedString()", "/** @group skip */\n public function testSanitizeDeepNestedString()", $c);
102-
file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);
103-
// Buggy FFI test in Symfony, see https://github.com/symfony/symfony/issues/47668
104-
$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php");
105-
$c = str_replace("*/\n public function testCastNonTrailingCharPointer()", "* @group skip\n */\n public function testCastNonTrailingCharPointer()", $c);
106-
file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);
107-
},
108-
function (): iterable {
109-
$it = new RecursiveDirectoryIterator("src/Symfony");
110-
/** @var SplFileInfo $file */
111-
foreach(new RecursiveIteratorIterator($it) as $file) {
112-
if ($file->getBasename() == 'phpunit.xml.dist') {
113-
yield [
114-
getcwd()."/phpunit",
115-
dirname($file->getRealPath()),
116-
"--exclude-group",
117-
"tty,benchmark,intl-data,transient",
118-
"--exclude-group",
119-
"skip"
120-
];
121-
}
122-
}
123-
},
124-
1
125-
];*/
126-
12748
$finalStatus = 0;
12849
$parentPids = [];
12950

0 commit comments

Comments
 (0)