.travis.yml 1.26 KB
Newer Older
gejun's avatar
gejun committed
1 2
language: cpp

gejun's avatar
gejun committed
3 4
sudo: required

5 6 7 8 9 10 11
compiler:
- clang
- gcc

env:
- PURPOSE=compile
- PURPOSE=unittest
12
- PURPOSE=compile-with-bazel
13

14 15 16
before_script:
- ulimit -c unlimited -S       # enable core dumps

17 18 19
before_install:
- wget --no-clobber https://github.com/bazelbuild/bazel/releases/download/0.8.1/bazel_0.8.1-linux-x86_64.deb
- sudo dpkg -i bazel_0.8.1-linux-x86_64.deb
wangxuefeng's avatar
wangxuefeng committed
20
- wget http://www.us.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && tar -xf thrift-0.11.0.tar.gz && cd thrift-0.11.0/ &&  ./configure --prefix=/usr --with-ruby=no --with-python=no --with-java=no --with-go=no --with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no --with-nodejs=no && make CPPFLAGS=-DFORCE_BOOST_SMART_PTR -j 3 -s && sudo make install && cd -
21

gejun's avatar
gejun committed
22
install:
23
- sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev libboost-dev libssl-dev libevent-dev libboost-test-dev
24
- sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo env "PATH=$PATH" cmake . && sudo make && sudo mv libgtest* /usr/lib/ && cd -
25
- sudo apt-get install -y gdb  # install gdb
gejun's avatar
gejun committed
26 27

script:
zhenren's avatar
zhenren committed
28
- if [[ "$PURPOSE" == "compile-with-bazel" ]]; then bazel build -j 12 -c opt --copt -DHAVE_ZLIB=1 //...          ; fi
29
- sh build_in_travis_ci.sh