Skip to content

Commit a4b4626

Browse files
committed
1 parent 356782f commit a4b4626

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ before_install:
2525
install:
2626
- if dpkg --compare-versions ${SERVER_VERSION} le "2.4"; then export SERVER_PACKAGE=mongodb-10gen-enterprise; else export SERVER_PACKAGE=mongodb-enterprise; fi
2727
- sudo apt-get install ${SERVER_PACKAGE}
28+
- sudo apt-get -y install gdb
2829

2930
before_script:
3031
- if dpkg --compare-versions ${SERVER_VERSION} le "2.4"; then export SERVER_SERVICE=mongodb; else export SERVER_SERVICE=mongod; fi
@@ -33,3 +34,10 @@ before_script:
3334
- pecl install -f mongodb-${DRIVER_VERSION}
3435
- php --ri mongodb
3536
- composer install --dev --no-interaction --prefer-source
37+
- ulimit -c
38+
- ulimit -c unlimited -S
39+
40+
script:
41+
- phpunit --debug || RESULT=$?
42+
- for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb `php -r 'echo PHP_BINARY;'` core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done;
43+
- if [[ ${RESULT} != 0 ]]; then exit $RESULT ; fi;

0 commit comments

Comments
 (0)