-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
29 lines (22 loc) · 1.12 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: cpp
dist: xenial
sudo: required
compiler:
- gcc
env:
- PURPOSE=compile
# - PURPOSE=unittest
install:
- sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libgoogle-perftools-dev
- sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo env "PATH=$PATH" cmake . && sudo make && sudo mv libgtest* /usr/lib/ && cd -
- sudo apt-get install -y gdb
- git clone https://github.com/dmclNewbee302/leveldb.git && mkdir -p leveldb/bld && cd leveldb/bld && cmake .. -DBUILD_SHARED_LIBS=1 -DBUILD_STATIC_LIBS=1 && make -j4 && sudo make install && cd -
- git clone https://github.com/brpc/brpc.git && mkdir -p brpc/bld && cd brpc/bld && cmake .. && make -j4 && sudo make install && cd -
- git clone https://github.com/brpc/braft.git && mkdir -p braft/bld && cd braft/bld && cmake .. && make -j4 && sudo make install && cd -
before_script:
- ulimit -c unlimited -S
script:
- sh build_in_travis_ci.sh
after_failure:
- COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1)
- if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" example -ex "thread apply all bt" -ex "set pagination 0" -batch; fi