mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 07:55:51 +00:00
A bug in gdb is crashing when demangling some symbols. Gdb needs to be updated to at least gdb 8. Only run the debug build under gdb (other builds can time out).
30 lines
1.5 KiB
YAML
30 lines
1.5 KiB
YAML
machine:
|
|
services:
|
|
- docker
|
|
dependencies:
|
|
pre:
|
|
- sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
|
|
- echo "deb [arch=amd64 trusted=yes] https://test-mirrors.ripple.com/ubuntu/ trusty testing" | sudo tee /etc/apt/sources.list.d/ripple.list
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get purge -qq libboost1.48-dev
|
|
- sudo apt-get install -qq libboost1.60-all-dev
|
|
- sudo apt-get install -qq clang-3.6 gcc-5 g++-5 libobjc-5-dev libgcc-5-dev libstdc++-5-dev libclang1-3.6 libgcc1 libgomp1 libstdc++6 scons protobuf-compiler libprotobuf-dev libssl-dev exuberant-ctags texinfo
|
|
- lsb_release -a
|
|
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 99
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 99
|
|
- sudo update-alternatives --force --install /usr/bin/clang clang /usr/bin/clang-3.6 99 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-3.6
|
|
- gcc --version
|
|
- clang --version
|
|
- clang++ --version
|
|
- if [[ ! -e gdb-8.0 ]]; then wget https://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.xz && tar xf gdb-8.0.tar.xz && cd gdb-8.0 && ./configure && make && cd ..; fi
|
|
- pushd gdb-8.0 && sudo make install && popd
|
|
- gdb --version
|
|
cache_directories:
|
|
- gdb-8.0
|
|
test:
|
|
pre:
|
|
- scons clang.debug
|
|
override:
|
|
# Execute unit tests under gdb
|
|
- gdb -return-child-result -quiet -batch -ex "set env MALLOC_CHECK_=3" -ex "set print thread-events off" -ex run -ex "thread apply all backtrace full" -ex "quit" --args build/clang.debug/rippled --unittest --quiet --unittest-log
|