From 9af8675c2eed25f2af44789ad539646fec6240d0 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 7 Sep 2017 17:13:17 +0200 Subject: [PATCH] travis: gdb --- .travis.yml | 6 ++++-- scripts/gen_travis_yml.php | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b781d20..5bade48 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,14 +9,15 @@ addons: - php5-cli - php-pear - valgrind + - gdb - re2c - libidn11-dev - libsqlite3-dev env: matrix: - - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so PHP=master enable_debug=no enable_psi=yes enable_psi_posix=all - - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so PHP=master enable_debug=yes enable_psi=yes enable_psi_posix=all + - PHP=master enable_debug=no enable_psi=yes enable_psi_posix=all + - PHP=master enable_debug=yes enable_psi=yes enable_psi_posix=all before_script: # make sure we do not try to regenerate files with broken bison @@ -29,6 +30,7 @@ script: after_failure: - cat config.log | curl -F 'sprunge=<-' http://sprunge.us + - test -f core && gdb -q -ex bt --batch $HOME/job-$TRAVIS_JOB_NUMBER/bin/php core notifications: webhooks: diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 2997c20..2807358 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -10,6 +10,7 @@ addons: - php5-cli - php-pear - valgrind + - gdb - re2c - libidn11-dev - libsqlite3-dev @@ -20,7 +21,6 @@ env: $gen = include __DIR__."/../travis/pecl/gen-matrix.php"; $env = $gen([ - "LD_PRELOAD" => ["/lib/x86_64-linux-gnu/libSegFault.so"], "PHP" => ["master"], "enable_debug", #"enable_maintainer_zts", @@ -44,6 +44,7 @@ script: after_failure: - cat config.log | curl -F 'sprunge=<-' http://sprunge.us + - test -f core && gdb -q -ex bt --batch $HOME/job-$TRAVIS_JOB_NUMBER/bin/php core notifications: webhooks: -- 2.30.2