forked from baidu/tera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (41 loc) · 2.26 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: cpp
compiler: gcc
env:
- PROTOBUF_VERSION=2.6.0
install:
- sudo apt-get install libboost-dev
- wget https://github.com/google/protobuf/releases/download/v2.6.0/protobuf-2.6.0.tar.gz
- tar xf protobuf-2.6.0.tar.gz
- ( cd protobuf-$PROTOBUF_VERSION && ./configure && make -j4 && sudo make install && sudo ldconfig )
- git clone https://github.com/google/snappy
- ( cd snappy && sh ./autogen.sh && ./configure && make -j4 && sudo make install )
- sudo apt-get install zlib1g-dev
- sudo apt-get -y install libssl-dev
- git clone https://github.com/koalademo/sofa-pbrpc
- ( cd sofa-pbrpc && make proto && make -j4 && make install )
- wget http://www.us.apache.org/dist/zookeeper/stable/zookeeper-3.4.6.tar.gz
- tar zxvf zookeeper-3.4.6.tar.gz
- ( cd zookeeper-3.4.6/src/c && ./configure --disable-shared && make -j4 && sudo make install )
- git clone https://github.com/google/glog
- ( cd glog && git checkout v0.3.3 && ./configure --disable-shared && make -j4 && sudo make install )
- git clone https://github.com/schuhschuh/gflags
- ( cd gflags && cmake . && make -j4 && sudo make install )
- wget http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99-beta.tar.gz
- tar zxvf libunwind-0.99-beta.tar.gz
- ( cd libunwind-0.99-beta && ./configure CFLAGS=-U_FORTIFY_SOURCE && make -j4 && sudo make install )
- wget https://googledrive.com/host/0B6NtGsLhIcf7MWxMMF9JdTN3UVk/gperftools-2.4.tar.gz
- tar zxvf gperftools-2.4.tar.gz
- ( cd gperftools-2.4 && ./configure && make -j4 && sudo make install )
before_script:
- sed -i 's/SOFA_PBRPC_PREFIX=/SOFA_PBRPC_PREFIX=.\/sofa-pbrpc\/output/' depends.mk
- sed -i 's/PROTOBUF_PREFIX=/PROTOBUF_PREFIX=\/usr\/local/' depends.mk
- sed -i 's/SNAPPY_PREFIX=/SNAPPY_PREFIX=\/usr\/local/' depends.mk
- sed -i 's/ZOOKEEPER_PREFIX=/ZOOKEEPER_PREFIX=\/usr\/local/' depends.mk
- sed -i 's/GFLAGS_PREFIX=/GFLAGS_PREFIX=\/usr\/local/' depends.mk
- sed -i 's/GLOG_PREFIX=/GLOG_PREFIX=\/usr\/local/' depends.mk
- sed -i 's/GPERFTOOLS_PREFIX=/GPERFTOOLS_PREFIX=\/usr\/local/' depends.mk
- sed -i 's/BOOST_INCDIR=/BOOST_INCDIR=\/usr\/local\/include/' depends.mk
script:
- sh build_version.sh
- make proto
- make -j4