File tree Expand file tree Collapse file tree 4 files changed +24
-23
lines changed Expand file tree Collapse file tree 4 files changed +24
-23
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- PHP=/home/travis/.phpenv/versions/` php -r ' echo PHP_VERSION;' ` /bin/php
4
- echo " backtrace full" | gdb $PHP $1
3
+ if [ " ${TRAVIS_OS_NAME} " != " osx" ]; then
4
+ # https://www.ics.uci.edu/~pattis/common/handouts/macmingweclipse/allexperimental/mac-gdb-install.html
5
+ echo " Cannot debug core files on macOS: ${1} "
6
+ exit 1
7
+ fi
5
8
9
+ PHP_BINARY=` which php`
10
+ gdb -batch -ex " bt full" -ex " quit" " ${PHP_BINARY} " " ${1} "
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ EXP=` echo $1 | sed ' s/.diff$/.exp/' `
4
+ OUT=` echo $1 | sed ' s/.diff$/.out/' `
5
+ SEP=" --------------------------------------------------------------------------------"
6
+
7
+ echo $EXP
8
+ echo $SEP
9
+ cat $EXP ; echo
10
+ echo $SEP ; echo
11
+
12
+ echo $OUT
13
+ echo $SEP
14
+ cat $OUT ; echo
15
+ echo $SEP ; echo
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -33,5 +33,5 @@ after_success:
33
33
- make coveralls
34
34
35
35
after_failure :
36
- - find . -name \* core\* -exec ./ .travis.scripts/debug-core.sh {} \;
37
- - find . -name \* diff -exec ./. travis.scripts/debug-script .sh {} \;
36
+ - find . -name ' core*' -exec .travis.scripts/debug-core.sh {} \;
37
+ - find . -name '*. diff' -exec .travis.scripts/debug-diff .sh {} \;
You can’t perform that action at this time.
0 commit comments