Skip to content

Commit 1ef31b6

Browse files
committed
Merge pull request XRPLF#143 from mlin/travis-ci
Travis CI
2 parents 9a0e3ab + 27c05ea commit 1ef31b6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.travis.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: cpp
2+
compiler: gcc
3+
before_install:
4+
# As of this writing (10 May 2014) the Travis build environment is Ubuntu 12.04,
5+
# which needs the following ugly dependency incantations to build RocksDB:
6+
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
7+
- sudo apt-get update -qq
8+
- sudo apt-get install -y -qq gcc-4.8 g++-4.8 zlib1g-dev libbz2-dev libsnappy-dev libjemalloc-dev
9+
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
10+
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
11+
- wget https://gflags.googlecode.com/files/libgflags0_2.0-1_amd64.deb
12+
- sudo dpkg -i libgflags0_2.0-1_amd64.deb
13+
- wget https://gflags.googlecode.com/files/libgflags-dev_2.0-1_amd64.deb
14+
- sudo dpkg -i libgflags-dev_2.0-1_amd64.deb
15+
# Lousy hack to disable use and testing of fallocate, which doesn't behave quite
16+
# as EnvPosixTest::AllocateTest expects within the Travis OpenVZ environment.
17+
- sed -i "s/fallocate(/HACK_NO_fallocate(/" build_tools/build_detect_platform
18+
script: make check -j8
19+

0 commit comments

Comments
 (0)