代码拉取完成,页面将自动刷新
language: cpp
compiler:
- gcc
before_install:
# Add software package repository, containing updated build toochain, i.e. GNU GCC 4.9
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes
- sudo add-apt-repository ppa:kalakris/cmake --yes
- sudo apt-get update -qq
# Download boost 1.5 and extract the source archive
- wget --no-verbose --output-document=boost_1_56_0.tar.bz2 http://sourceforge.net/projects/boost/files/boost/1.56.0/boost_1_56_0.tar.bz2/download
- export BOOST_ROOT="$TRAVIS_BUILD_DIR/../boost"
- export DEBIAN_FRONTEND=noninteractive
- mkdir -p $BOOST_ROOT
- tar jxf boost_1_56_0.tar.bz2 --strip-components=1 -C $BOOST_ROOT
- wget http://www.us.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz
- export THRIFT_ROOT="$TRAVIS_BUILD_DIR/../thrift"
- mkdir -p $THRIFT_ROOT
- tar xf thrift-0.9.2.tar.gz --strip-components=1 -C $THRIFT_ROOT
install:
# Install GNU GCC 4.9 required by use of C++11
- sudo apt-get -qq -y install g++-4.9 gcc-4.9 libssl-dev zlib1g-dev cmake redis-server automake libtool flex bison pkg-config mysql-server libmysqlcppconn-dev
- (sudo rm -f /usr/bin/gcc; sudo ln -sf /usr/bin/gcc-4.9 /usr/bin/gcc)
- (sudo rm -f /usr/bin/g++; sudo ln -sf /usr/bin/g++-4.9 /usr/bin/g++)
# Build boost libraries required by ledger
- (cd $BOOST_ROOT; ./bootstrap.sh --with-libraries=atomic,chrono,context,coroutine,iostreams,system,test,thread)
- (cd $BOOST_ROOT; sudo ./b2 threading=multi --prefix=/usr/local -d0 install)
- (cd $THRIFT_ROOT; ./configure --with-qt4=no --with-c_glib=no --with-csharp=no --with-java=no --with-erlang=no --with-nodejs=no --with-lua=no --with-python=no --with-perl=no --with-php=no --with-php_extensioo --with-ruby=no --with-haskell=no --with-go=no --with-d=no; sudo make -j4 install)
script: mkdir build && cd build && cmake ../ && make -j4 && make test
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。