Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
25a0be0f
Commit
25a0be0f
authored
Feb 09, 2019
by
ciody
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis - print few core dump related system information
parent
0727817a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
.travis.yml
.travis.yml
+17
-6
No files found.
.travis.yml
View file @
25a0be0f
language
:
cpp
dist
:
trusty
sudo
:
required
sudo
:
true
branches
:
only
:
...
...
@@ -104,6 +104,17 @@ before_script:
-
export CXX=${COMPILER}
-
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
-
cmake -H. -BBuild-Debug
-DCMAKE_BUILD_TYPE=Debug
...
...
@@ -111,9 +122,6 @@ before_script:
-DPISTACHE_BUILD_TESTS=true
-DPISTACHE_SSL=true
# Enable core dumps
-
ulimit -c unlimited -S
# Release build
-
cmake -H. -BBuild-Release -DCMAKE_BUILD_TYPE=Release -DPISTACHE_SSL=true
...
...
@@ -127,5 +135,8 @@ script:
-
make -j
2
after_failure
:
-
COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1)
# find core file
-
if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" example -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
\ No newline at end of file
# find and print core file
-
COREFILE=$(find ./ -maxdepth 1 -name "core*" -print | head -n 1)
-
if [[ -f "$COREFILE" ]]; then
gdb -c "$COREFILE" -ex "thread apply all bt" -ex "set pagination 0" -batch;
fi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment