diff --git a/.travis.yml b/.travis.yml index abbc8aadf..3a184d007 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ compiler: addons: apt: sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6'] - packages: ['clang-3.6' , 'zlib1g-dev', 'libbz2-dev', 'libsnappy-dev', 'curl'] + packages: ['clang-3.6' , 'zlib1g-dev', 'libbz2-dev', 'libsnappy-dev', 'curl', 'gflags'] env: # Run all tests before db_block_cache_test (db_test, db_test2) - JOB_NAME=unittests ROCKSDBTESTS_END=db_block_cache_test @@ -26,13 +26,7 @@ install: - pushd /tmp/ && curl -L https://github.com/gflags/gflags/archive/v2.1.2.tar.gz -o gflags.tar.gz && tar xfz gflags.tar.gz && cd gflags-2.1.2 && cmake . && make && popd before_script: - # Add gflags to include/library paths - # TODO(noetzli): Remove when gflags available through Travis - - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp/gflags-2.1.2/lib" - - export LIBRARY_PATH="$LIBRARY_PATH:/tmp/gflags-2.1.2/lib" - - export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/tmp/gflags-2.1.2/include" - if [[ "${TRAVIS_OS_NAME}" == 'linux' ]]; then CXX=clang++-3.6; fi - - if [[ "${TRAVIS_OS_NAME}" == 'osx' ]]; then brew install gflags snappy; fi # Limit the maximum number of open file descriptors to 8192 - ulimit -n 8192 || true