From bf84a3f1a103524d3d8295fdefcbcee7c7b8b5cf Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 26 May 2017 08:01:28 +0200 Subject: [PATCH 1/2] Enable coredump https://github.com/springmeyer/travis-coredump/blob/master/.travis.yml --- .travis.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2c1b97a7..47e79bce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,34 @@ language: cpp sudo: required dist: trusty - +addons: + apt: + packages: + - gdb + - apport os: linux env: global: - DISPLAY=:99 +compiler: + - gcc + before_install: + # Enable core dumps + # https://github.com/springmeyer/travis-coredump/blob/master/.travis.yml + - ulimit -c unlimited -S + - ulimit -a -S + - ulimit -a -H + - cat /proc/sys/kernel/core_pattern + - cat /etc/default/apport + - service --status-all || true + - initctl list || true - ./tests/tests-environment.sh script: - - ./tests/tests-ci.sh + - ./tests/tests-ci.sh after_success: - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh @@ -20,6 +36,7 @@ after_success: after_script: - "xpra stop :99" + - for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/test core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done; branches: except: From 2f28ccd6318c599eae46a781bc75fe9eeffe9ee4 Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 26 May 2017 08:07:55 +0200 Subject: [PATCH 2/2] Update .travis.yml --- .travis.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 47e79bce..68efe89f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,13 +18,9 @@ compiler: before_install: # Enable core dumps # https://github.com/springmeyer/travis-coredump/blob/master/.travis.yml - - ulimit -c unlimited -S - ulimit -a -S - - ulimit -a -H - - cat /proc/sys/kernel/core_pattern - - cat /etc/default/apport - - service --status-all || true - - initctl list || true + - ulimit -a -H + - ulimit -c unlimited -S - ./tests/tests-environment.sh script: @@ -36,6 +32,7 @@ after_success: after_script: - "xpra stop :99" + - find ./ -maxdepth 1 -name 'core*' - for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/test core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done; branches: