mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
fix tests
This commit is contained in:
parent
d3ff6fd8c0
commit
e1e5515694
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -140,7 +140,7 @@ jobs:
|
|||||||
run: bin/spc doctor --auto-fix
|
run: bin/spc doctor --auto-fix
|
||||||
|
|
||||||
- name: "Run Build Tests (download)"
|
- name: "Run Build Tests (download)"
|
||||||
run: bin/spc download --for-extensions="$(php src/globals/test-extensions.php)" --with-php=${{ matrix.php }} --debug
|
run: bin/spc download --for-extensions="$(php src/globals/test-extensions.php extensions)" --with-php=${{ matrix.php }} --debug
|
||||||
|
|
||||||
- name: "Run Build Tests (build)"
|
- name: "Run Build Tests (build)"
|
||||||
run: bin/spc build $(php src/globals/test-extensions.php) --build-cli --build-micro --build-fpm --debug
|
run: bin/spc build $(php src/globals/test-extensions.php cmd) --build-cli --build-micro --build-fpm --debug
|
||||||
|
|||||||
@ -2,14 +2,24 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
# If you want to test new extensions here, just modify it.
|
# Normal test, contains `common` extension.
|
||||||
$extensions = 'sqlsrv,apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,event,exif,fileinfo,filter,ftp,gd,gmp,iconv,imagick,imap,intl,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pcntl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,phar,posix,protobuf,readline,redis,session,shmop,simplexml,soap,sockets,sqlite3,swoole,sysvmsg,sysvsem,sysvshm,tokenizer,xml,xmlreader,xmlwriter,xsl,zip,zlib';
|
$extensions = 'bcmath,bz2,calendar,ctype,curl,dom,exif,fileinfo,filter,ftp,gd,gmp,iconv,xml,mbstring,mbregex,mysqlnd,openssl,pcntl,pdo,pdo_mysql,pdo_sqlite,phar,posix,redis,session,simplexml,soap,sockets,sqlite3,tokenizer,xmlwriter,xmlreader,zlib,zip';
|
||||||
|
|
||||||
if (PHP_OS_FAMILY === 'Darwin') {
|
# Normal test, contains gd extra libraries.
|
||||||
$extensions .= ',sodium';
|
$additional_libs = 'libwebp,libavif,libjpeg,freetype';
|
||||||
|
|
||||||
|
# If you want to test additional extensions, add them below. (comma start)
|
||||||
|
$extensions .= ',igbinary';
|
||||||
|
|
||||||
|
# If you want to test additional features for extensions, add libs below. (comma start like extensions)
|
||||||
|
$additional_libs .= ',liblz4';
|
||||||
|
|
||||||
|
if (!isset($argv[1])) {
|
||||||
|
exit("Please use 'extensions', 'cmd' or 'libs' as output type");
|
||||||
}
|
}
|
||||||
|
echo match ($argv[1]) {
|
||||||
// test redis lz4, igbinary
|
'extensions' => $extensions,
|
||||||
$extensions .= ',igbinary,zstd --with-libs=liblz4';
|
'libs' => $additional_libs,
|
||||||
|
'cmd' => $extensions . ' --with-libs=' . $additional_libs,
|
||||||
echo $extensions;
|
default => '',
|
||||||
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user