Browse Source

Merge pull request #365 from Jan-E/appveyor_3_tests

Appveyor enable 3 extra tests
Stefan Siegl 6 years ago
parent
commit
42e907c31e
2 changed files with 5 additions and 7 deletions
  1. 5 1
      appveyor.yml
  2. 0 6
      tests/extensions_error.phpt

+ 5 - 1
appveyor.yml

@@ -41,6 +41,10 @@ install:
   - cd deps
   - curl -fSL -o %V8_ASSETS% "https://s3.amazonaws.com/win-phpv8/%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 ..
   - 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%
@@ -68,7 +72,7 @@ build_script:
   - echo Building PHP [%PHP_VERSION%]
   - '%PHP_SDK%\bin\phpsdk_setvars'
   - 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
 
 after_build:

+ 0 - 6
tests/extensions_error.phpt

@@ -9,12 +9,6 @@ phpinfo(INFO_MODULES);
 $minfo = ob_get_contents();
 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)) {
     $version = explode('.', $matches[1]);
     if($version[0] < 5 || ($version[0] == 5 && $version[1] < 7)) {