From: Michael Wallner Date: Thu, 14 Apr 2016 07:49:34 +0000 (+0200) Subject: add travis support X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6b2e6562e64a263a42910d28e23b6ca94f3ecb65;p=m6w6%2Fext-psi add travis support --- diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e53f88c --- /dev/null +++ b/.gitmodules @@ -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 index 0000000..a893c33 --- /dev/null +++ b/.travis.yml @@ -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 index 0000000..1037ea5 --- /dev/null +++ b/scripts/gen_travis_yml.php @@ -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: + ["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 index 0000000..5fa813b --- /dev/null +++ b/travis/pecl @@ -0,0 +1 @@ +Subproject commit 5fa813b43612f3467f029f6681ebe5591ac6d275