2 <?php
echo "# generated file; do not edit!\n"; ?
>
13 $gen = include __DIR__
. "/ci/gen-matrix.php";
17 "PHP" => ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"],
18 "enable_debug" => "yes",
19 "enable_maintainer_zts" => "yes",
20 "enable_json" => "yes",
24 "enable_debug" => "yes",
25 "enable_zts" => "yes",
33 "CFLAGS" => "-O0 -g --coverage",
34 "CXXFLAGS" => "-O0 -g --coverage",
37 foreach ($job as $id => $env) {
38 printf(" %s:\n", $id);
39 printf(" name: \"%s (%s)\"\n", $id, $env["PHP"]);
40 if ($env["PHP"] == "master") {
41 printf(" continue-on-error: true\n");
44 foreach ($env as $key => $val) {
45 printf(" %s: \"%s\"\n", $key, $val);
48 PQ_DSN
: "postgres:///runner"
51 - uses
: actions
/checkout@v2
56 sudo apt
-get install
-y \
63 make
-f scripts
/ci
/Makefile php || make
-f scripts
/ci
/Makefile clean php
64 make
-f scripts
/ci
/Makefile pecl PECL
=m6w6
/ext
-raphf
.git
:raphf
:master
67 make
-f scripts
/ci
/Makefile ext PECL
=pq
70 sudo systemctl start postgresql
71 sudo
-u postgres createuser
--login runner
72 sudo
-u postgres createdb
-O runner runner
75 make
-f scripts
/ci
/Makefile test
76 <?php
if (isset($env["CFLAGS"]) && strpos($env["CFLAGS"], "--coverage") != false) : ?
>
81 bash
<(curl
-s https
://codecov.io/bash) -X xcode -X coveragepy