From 6b2e6562e64a263a42910d28e23b6ca94f3ecb65 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 14 Apr 2016 09:49:34 +0200 Subject: [PATCH] add travis support --- .gitmodules | 4 ++++ .travis.yml | 24 ++++++++++++++++++++++++ scripts/gen_travis_yml.php | 36 ++++++++++++++++++++++++++++++++++++ travis/pecl | 1 + 4 files changed, 65 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..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 -- 2.30.2