mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 09:21:51 +00:00
Merge pull request #365 from Jan-E/appveyor_3_tests
Appveyor enable 3 extra tests
This commit is contained in:
commit
42e907c31e
@ -41,6 +41,10 @@ install:
|
|||||||
- cd deps
|
- cd deps
|
||||||
- curl -fSL -o %V8_ASSETS% "https://s3.amazonaws.com/win-phpv8/%V8_ASSETS%"
|
- curl -fSL -o %V8_ASSETS% "https://s3.amazonaws.com/win-phpv8/%V8_ASSETS%"
|
||||||
- 7z.exe x %V8_ASSETS%
|
- 7z.exe x %V8_ASSETS%
|
||||||
|
- curl -fSL -o libiconv.zip "https://windows.php.net/downloads/php-sdk/deps/vc14/%Platform%/libiconv-1.15-vc14-%Platform%.zip"
|
||||||
|
- 7z.exe x libiconv.zip -y
|
||||||
|
- curl -fSL -o libxml2.zip "https://windows.php.net/downloads/php-sdk/deps/vc14/%Platform%/libxml2-2.9.8-vc14-%Platform%.zip"
|
||||||
|
- 7z.exe x libxml2.zip -y
|
||||||
- cd ..
|
- cd ..
|
||||||
- curl -fSL -o "php-%PHP_VERSION%.tar.gz" "https://github.com/php/php-src/archive/php-%PHP_VERSION%.tar.gz"
|
- curl -fSL -o "php-%PHP_VERSION%.tar.gz" "https://github.com/php/php-src/archive/php-%PHP_VERSION%.tar.gz"
|
||||||
- ren php php-src-php-%PHP_VERSION%
|
- ren php php-src-php-%PHP_VERSION%
|
||||||
@ -68,7 +72,7 @@ build_script:
|
|||||||
- echo Building PHP [%PHP_VERSION%]
|
- echo Building PHP [%PHP_VERSION%]
|
||||||
- '%PHP_SDK%\bin\phpsdk_setvars'
|
- '%PHP_SDK%\bin\phpsdk_setvars'
|
||||||
- buildconf
|
- buildconf
|
||||||
- configure --disable-all --enable-cli --with-v8js %CONFIGURE_EXTRA%
|
- configure --disable-all --enable-cli --with-iconv=yes --with-libxml=yes --with-dom=yes --enable-json=static --with-v8js %CONFIGURE_EXTRA%
|
||||||
- nmake
|
- nmake
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
|
@ -9,12 +9,6 @@ phpinfo(INFO_MODULES);
|
|||||||
$minfo = ob_get_contents();
|
$minfo = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
if(strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
|
|
||||||
// On Windows the "Fatal error" happens to appear before the error
|
|
||||||
// message output by V8 itself.
|
|
||||||
echo "skip Windows";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(preg_match("/V8 Engine Linked Version => (.*)/", $minfo, $matches)) {
|
if(preg_match("/V8 Engine Linked Version => (.*)/", $minfo, $matches)) {
|
||||||
$version = explode('.', $matches[1]);
|
$version = explode('.', $matches[1]);
|
||||||
if($version[0] < 5 || ($version[0] == 5 && $version[1] < 7)) {
|
if($version[0] < 5 || ($version[0] == 5 && $version[1] < 7)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user