-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.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
compiler: gcc
install:
- sudo apt-get install libboost-dev uuid-dev
- wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
- tar xf protobuf-2.6.1.tar.gz
- ( cd protobuf-2.6.1 && ./configure --with-pic && make -j4 && sudo make install && sudo ldconfig )
- git clone https://github.com/google/snappy
- ( cd snappy && sh ./autogen.sh && ./configure --with-pic && make -j4 && sudo make install )
- git clone https://github.com/baidu/sofa-pbrpc
- ( cd sofa-pbrpc && make -j4 && make install )
- git clone https://github.com/baidu/common
- ( cd common && make -j4 )
before_script:
- sed -i 's/^SOFA_PBRPC=.*/SOFA_PBRPC=.\/sofa-pbrpc\/output/' depends.mk
- sed -i 's/^PROTOBUF_DIR=.*/PROTOBUF_DIR=\/usr\/local/' depends.mk
- sed -i 's/^SNAPPY_DIR=.*/SNAPPY_DIR=\/usr\/local/' depends.mk
- sed -i 's/^BOOST_HEADER_DIR=.*/BOOST_HEADER_DIR=\/usr\/local\/include/' depends.mk
- sed -i 's/^COMMON_INC=.*/COMMON_INC=.\/common\/include/' depends.mk
- sed -i 's/^COMMON_LIB=.*/COMMON_LIB=.\/common/' depends.mk
script:
- make -j4