From eb8e30cfce9b4af80d67a1c4a808f02c92177aef Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 31 Jul 2015 15:33:44 +0200 Subject: [PATCH] travis --- .gitmodules | 4 ++++ .travis.yml | 51 ++++++++++++++++++++++++++++++++++++++++------ gen_travis_yml.php | 42 ++++++++++++++++++++++++++++++++++++++ travis/pecl | 1 + 4 files changed, 92 insertions(+), 6 deletions(-) create mode 100644 .gitmodules create mode 100755 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 index 7dc1227..003bad0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,49 @@ -language: php +# autogenerated file; do not edit +language: c -php: - - 5.3 - - 5.4 +addons: + apt: + packages: + - php5-cli + - php-pear + - libcurl5-openssl-dev + - zlib1g-dev + - libidn11-dev + - libevent-dev -before_script: phpize +env: + - PHP=5.4 enable_debug=no enable_maintainer_zts=no enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.5 enable_debug=no enable_maintainer_zts=no enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.6 enable_debug=no enable_maintainer_zts=no enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.4 enable_debug=yes enable_maintainer_zts=no enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.5 enable_debug=yes enable_maintainer_zts=no enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.6 enable_debug=yes enable_maintainer_zts=no enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.4 enable_debug=no enable_maintainer_zts=yes enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.5 enable_debug=no enable_maintainer_zts=yes enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.6 enable_debug=no enable_maintainer_zts=yes enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.4 enable_debug=yes enable_maintainer_zts=yes enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.5 enable_debug=yes enable_maintainer_zts=yes enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.6 enable_debug=yes enable_maintainer_zts=yes enable_json=no enable_hash=yes enable_iconv=yes + - PHP=5.4 enable_debug=no enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.5 enable_debug=no enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.6 enable_debug=no enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.4 enable_debug=yes enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.5 enable_debug=yes enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.6 enable_debug=yes enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.4 enable_debug=no enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.5 enable_debug=no enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.6 enable_debug=no enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.4 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.5 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes + - PHP=5.6 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes -script: ./configure && make && NO_INTERACTION=1 REPORT_EXIT_STATUS=1 TEST_PHP_DETAILED=1 make test +before_script: + - make -f travis/pecl/Makefile php + - make -f travis/pecl/Makefile pecl PECL=raphf + - make -f travis/pecl/Makefile pecl PECL=propro +script: + - make -f travis/pecl/Makefile ext PECL=http + - make -f travis/pecl/Makefile test + +sudo: false diff --git a/gen_travis_yml.php b/gen_travis_yml.php new file mode 100755 index 0000000..0105272 --- /dev/null +++ b/gen_travis_yml.php @@ -0,0 +1,42 @@ +#!/usr/bin/env php +# autogenerated file; do not edit +language: c + +addons: + apt: + packages: + - php5-cli + - php-pear + - libcurl5-openssl-dev + - zlib1g-dev + - libidn11-dev + - libevent-dev + +env: + ["5.4", "5.5", "5.6"], + "enable_debug", + "enable_maintainer_zts", + "enable_json", + "enable_hash" => ["yes"], + "enable_iconv" => ["yes"] +]); +foreach ($env as $e) { + printf(" - %s\n", $e); +} + +?> + +before_script: + - make -f travis/pecl/Makefile php + - make -f travis/pecl/Makefile pecl PECL=raphf + - make -f travis/pecl/Makefile pecl PECL=propro + +script: + - make -f travis/pecl/Makefile ext PECL=http + - make -f travis/pecl/Makefile test + +sudo: false diff --git a/travis/pecl b/travis/pecl new file mode 160000 index 0000000..9800c7b --- /dev/null +++ b/travis/pecl @@ -0,0 +1 @@ +Subproject commit 9800c7bbe07c9c8a172b158b58c85ce4a97d3863 -- 2.30.2