travis
authorMichael Wallner <mike@php.net>
Tue, 29 Sep 2015 15:11:09 +0000 (17:11 +0200)
committerMichael Wallner <mike@php.net>
Tue, 29 Sep 2015 15:11:09 +0000 (17:11 +0200)
.gitmodules [new file with mode: 0644]
.travis.yml [new file with mode: 0644]
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..4ec77a5
--- /dev/null
@@ -0,0 +1,32 @@
+# autogenerated file; do not edit
+sudo: false
+language: c
+
+addons:
+ apt:
+  packages:
+   - php5-cli
+   - php-pear
+
+env:
+ matrix:
+  - PHP=5.4 enable_debug=no enable_maintainer_zts=no
+  - PHP=5.5 enable_debug=no enable_maintainer_zts=no
+  - PHP=5.6 enable_debug=no enable_maintainer_zts=no
+  - PHP=5.4 enable_debug=yes enable_maintainer_zts=no
+  - PHP=5.5 enable_debug=yes enable_maintainer_zts=no
+  - PHP=5.6 enable_debug=yes enable_maintainer_zts=no
+  - PHP=5.4 enable_debug=no enable_maintainer_zts=yes
+  - PHP=5.5 enable_debug=no enable_maintainer_zts=yes
+  - PHP=5.6 enable_debug=no enable_maintainer_zts=yes
+  - PHP=5.4 enable_debug=yes enable_maintainer_zts=yes
+  - PHP=5.5 enable_debug=yes enable_maintainer_zts=yes
+  - PHP=5.6 enable_debug=yes enable_maintainer_zts=yes
+
+before_script:
+ - make -f travis/pecl/Makefile php
+ - make -f travis/pecl/Makefile ext PECL=propro
+
+script:
+ - make -f travis/pecl/Makefile test
+
diff --git a/gen_travis_yml.php b/gen_travis_yml.php
new file mode 100755 (executable)
index 0000000..cc49a29
--- /dev/null
@@ -0,0 +1,34 @@
+#!/usr/bin/env php
+# autogenerated file; do not edit
+sudo: false
+language: c
+
+addons:
+ apt:
+  packages:
+   - php5-cli
+   - php-pear
+
+env:
+ matrix:
+<?php
+
+$gen = include "./travis/pecl/gen-matrix.php";
+$env = $gen([
+       "PHP" => ["5.4", "5.5", "5.6"],
+       "enable_debug",
+       "enable_maintainer_zts",
+]);
+foreach ($env as $e) {
+       printf("  - %s\n", $e);
+}
+
+?>
+
+before_script:
+ - make -f travis/pecl/Makefile php
+ - make -f travis/pecl/Makefile ext PECL=propro
+
+script:
+ - make -f travis/pecl/Makefile test
+
diff --git a/travis/pecl b/travis/pecl
new file mode 160000 (submodule)
index 0000000..6b7c11b
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 6b7c11b05020541819dbd501dea52d3e2d04aa1e