From 32a1bb34907be47e7d062c6633419c6e7fa38a16 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 30 Sep 2015 14:53:47 +0200 Subject: [PATCH] travis --- .gitmodules | 4 ++++ .travis.yml | 31 +++++++++++++++++++++++++++++++ package.xml | 3 +++ scripts/gen_travis_yml.php | 33 +++++++++++++++++++++++++++++++++ travis/pecl | 1 + 5 files changed, 72 insertions(+) create mode 100644 .gitmodules create mode 100644 .travis.yml create mode 100755 scripts/gen_travis_yml.php create mode 160000 travis/pecl 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..6f79029 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +# 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=raphf + +script: + - make -f travis/pecl/Makefile test diff --git a/package.xml b/package.xml index 15f04c3..ac6920e 100644 --- a/package.xml +++ b/package.xml @@ -53,6 +53,9 @@ http://pear.php.net/dtd/package-2.0.xsd"> + + + diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php new file mode 100755 index 0000000..8001d10 --- /dev/null +++ b/scripts/gen_travis_yml.php @@ -0,0 +1,33 @@ +#!/usr/bin/env php +# autogenerated file; do not edit +sudo: false +language: c + +addons: + apt: + packages: + - php5-cli + - php-pear + +env: + matrix: + ["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=raphf + +script: + - make -f travis/pecl/Makefile test diff --git a/travis/pecl b/travis/pecl new file mode 160000 index 0000000..6b7c11b --- /dev/null +++ b/travis/pecl @@ -0,0 +1 @@ +Subproject commit 6b7c11b05020541819dbd501dea52d3e2d04aa1e -- 2.30.2