2014-05-11 04:18:23 +00:00
|
|
|
language: cpp
|
|
|
|
compiler: gcc
|
|
|
|
before_install:
|
|
|
|
# As of this writing (10 May 2014) the Travis build environment is Ubuntu 12.04,
|
|
|
|
# which needs the following ugly dependency incantations to build RocksDB:
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get update -qq
|
2015-02-25 01:19:25 +00:00
|
|
|
- sudo apt-get install -y -qq gcc-4.9 g++-4.9 zlib1g-dev libbz2-dev libsnappy-dev libjemalloc-dev
|
|
|
|
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
|
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
|
2014-05-11 04:18:23 +00:00
|
|
|
- wget https://gflags.googlecode.com/files/libgflags0_2.0-1_amd64.deb
|
|
|
|
- sudo dpkg -i libgflags0_2.0-1_amd64.deb
|
|
|
|
- wget https://gflags.googlecode.com/files/libgflags-dev_2.0-1_amd64.deb
|
|
|
|
- sudo dpkg -i libgflags-dev_2.0-1_amd64.deb
|
|
|
|
# Lousy hack to disable use and testing of fallocate, which doesn't behave quite
|
|
|
|
# as EnvPosixTest::AllocateTest expects within the Travis OpenVZ environment.
|
2015-03-17 22:24:16 +00:00
|
|
|
script: OPT=-DTRAVIS V=1 make unity && make clean && OPT=-DTRAVIS V=1 make db_test && ./db_test
|
2014-05-14 23:08:02 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|