gh-actions: ignore E_DEPRECATED for master
[m6w6/ext-http] / scripts / gen_github_workflow_ci.php
index 384ff6687b5f414537e4f96a5901d88e7287d493..f36cf5f3a411f2a0466a0d8d6b4cc025c2978ad8 100755 (executable)
@@ -19,6 +19,7 @@ $job = $gen->github([
     "enable_debug" => "yes",
     "enable_zts" => "yes",
     "enable_iconv" => "yes",
+    "TEST_PHP_ARGS" => "-d error_reporting=24575" // ignore E_DEPRECATED
 ], 
 "cur-none" => [
 // everything disabled for current
@@ -39,8 +40,8 @@ $job = $gen->github([
 ], 
 "cur-cov" => [
 // once everything enabled for current, with coverage
-    "CFLAGS" => "'-O0 -g --coverage'",
-    "CXXFLAGS" => "'-O0 -g --coverage'",
+    "CFLAGS" => "-O0 -g --coverage",
+    "CXXFLAGS" => "-O0 -g --coverage",
     "PHP" => $cur,
     "enable_iconv" => "yes",
     [
@@ -76,17 +77,18 @@ foreach ($job as $id => $env) {
             libidn2-0-dev \
             libicu-dev \
             libevent-dev \
-            libbrotli-dev
+            libbrotli-dev \
+            re2c
       - name: Prepare
         run: |
           make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php
           make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
       - name: Build
         run: |
-          make -f travis/pecl/Makefile ext PECL=http
+          make -f scripts/ci/Makefile ext PECL=http
       - name: Test
         run: |
-          make -f travis/pecl/Makefile test
+          make -f scripts/ci/Makefile test
 <?php if (isset($env["CFLAGS"]) && strpos($env["CFLAGS"], "--coverage") != false) : ?>
       - name: Coverage
         if: success()