-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
24 lines (24 loc) · 1.3 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
language: cpp
compiler:
#- clang
- gcc
before_install:
#- sudo pip install cpp-coveralls --use-mirrors
- sudo add-apt-repository ppa:fcitx-team/nightly -y
- if [ "$CXX" = "g++" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- if [ "$CXX" = "clang++" ]; then sudo add-apt-repository ppa:kxstudio-team/builds -y; fi
- sudo add-apt-repository ppa:boost-latest/ppa -y
- sudo apt-get update -qq
- sudo apt-get install -qq phantomjs cmake g++-4.8 libsqlite3-dev libgflags-dev libboost-log1.55-dev libboost-iostreams1.55-dev libboost-filesystem1.55-dev libboost-system1.55-dev libboost-chrono1.55-dev libboost1.55-dev libgtest-dev libhtmlcxx-dev libcurl4-openssl-dev libjsoncpp-dev libleveldb-dev libsnappy-dev libprotobuf-dev protobuf-compiler
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq ggcov g++-4.8 --force-yes; export CXX="g++-4.8"; fi
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq clang-3.2 --force-yes; fi
- sudo mkdir /usr/src/gtest/build
- cd /usr/src/gtest/build
- sudo cmake .. -DBUILD_SHARED_LIBS=1
- sudo make -j 4
- sudo ln -s /usr/src/gtest/build/libgtest.so /usr/lib/libgtest.so
- sudo ln -s /usr/src/gtest/build/libgtest_main.so /usr/lib/libgtest_main.so
- cd -
- git submodule update --init --recursive
script: make
#after_success: coveralls