Commit 25a0be0f authored by ciody's avatar ciody

travis - print few core dump related system information

parent 0727817a
language: cpp language: cpp
dist: trusty dist: trusty
sudo: required sudo: true
branches: branches:
only: only:
...@@ -104,6 +104,17 @@ before_script: ...@@ -104,6 +104,17 @@ before_script:
- export CXX=${COMPILER} - export CXX=${COMPILER}
- cd ${TRAVIS_BUILD_DIR} - cd ${TRAVIS_BUILD_DIR}
# Enable core dumps
- ulimit -c
- ulimit -a -S
- ulimit -a -H
# Print debug system information
- cat /proc/sys/kernel/core_pattern
- cat /etc/default/apport
- service --status-all || true
- initctl list || true
# Debug build # Debug build
- cmake -H. -BBuild-Debug - cmake -H. -BBuild-Debug
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=Debug
...@@ -111,9 +122,6 @@ before_script: ...@@ -111,9 +122,6 @@ before_script:
-DPISTACHE_BUILD_TESTS=true -DPISTACHE_BUILD_TESTS=true
-DPISTACHE_SSL=true -DPISTACHE_SSL=true
# Enable core dumps
- ulimit -c unlimited -S
# Release build # Release build
- cmake -H. -BBuild-Release -DCMAKE_BUILD_TYPE=Release -DPISTACHE_SSL=true - cmake -H. -BBuild-Release -DCMAKE_BUILD_TYPE=Release -DPISTACHE_SSL=true
...@@ -127,5 +135,8 @@ script: ...@@ -127,5 +135,8 @@ script:
- make -j 2 - make -j 2
after_failure: after_failure:
- COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) # find core file # find and print core file
- if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" example -ex "thread apply all bt" -ex "set pagination 0" -batch; fi - COREFILE=$(find ./ -maxdepth 1 -name "core*" -print | head -n 1)
\ No newline at end of file - if [[ -f "$COREFILE" ]]; then
gdb -c "$COREFILE" -ex "thread apply all bt" -ex "set pagination 0" -batch;
fi
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment