add travis support
authorMichael Wallner <mike@php.net>
Thu, 14 Apr 2016 07:49:34 +0000 (09:49 +0200)
committerMichael Wallner <mike@php.net>
Thu, 14 Apr 2016 07:49:34 +0000 (09:49 +0200)
.gitmodules [new file with mode: 0644]
.travis.yml [new file with mode: 0644]
scripts/gen_travis_yml.php [new file with mode: 0755]
travis/pecl [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..e53f88c
--- /dev/null
@@ -0,0 +1,4 @@
+[submodule "travis-pecl"]
+       path = travis/pecl
+       url = https://github.com/m6w6/travis-pecl.git
+       branch = master
diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..a893c33
--- /dev/null
@@ -0,0 +1,24 @@
+# autogenerated file; do not edit
+language: c
+sudo: false
+
+addons:
+ apt:
+  packages:
+   - php5-cli
+   - php-pear
+
+env:
+ matrix:
+  - PHP=7.0 enable_debug=no enable_psi=yes enable_psi_posix=all
+  - PHP=master enable_debug=no enable_psi=yes enable_psi_posix=all
+  - PHP=7.0 enable_debug=yes enable_psi=yes enable_psi_posix=all
+  - PHP=master enable_debug=yes enable_psi=yes enable_psi_posix=all
+
+before_script:
+ - make -f travis/pecl/Makefile php
+ - make -f travis/pecl/Makefile ext PECL=psi
+
+script:
+ - make -f travis/pecl/Makefile test
+
diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php
new file mode 100755 (executable)
index 0000000..1037ea5
--- /dev/null
@@ -0,0 +1,36 @@
+#!/usr/bin/env php
+# autogenerated file; do not edit
+language: c
+sudo: false
+
+addons:
+ apt:
+  packages:
+   - php5-cli
+   - php-pear
+
+env:
+ matrix:
+<?php
+
+$gen = include __DIR__."/../travis/pecl/gen-matrix.php";
+$env = $gen([
+       "PHP" => ["7.0", "master"],
+       "enable_debug",
+       #"enable_maintainer_zts",
+       "enable_psi" => ["yes"],
+       "enable_psi_posix" => ["all"]
+]);
+foreach ($env as $e) {
+       printf("  - %s\n", $e);
+}
+
+?>
+
+before_script:
+ - make -f travis/pecl/Makefile php
+ - make -f travis/pecl/Makefile ext PECL=psi
+
+script:
+ - make -f travis/pecl/Makefile test
+
diff --git a/travis/pecl b/travis/pecl
new file mode 160000 (submodule)
index 0000000..5fa813b
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 5fa813b43612f3467f029f6681ebe5591ac6d275