Merge pull request #711 from facebook/testtravis

Upgrade travis to new architecture
main
Igor Canadi 9 years ago
commit a55e5a52ae
  1. 34
      .travis.yml

@ -1,19 +1,25 @@
sudo: false
os:
- linux
language: cpp language: cpp
compiler: gcc compiler: clang
before_install: addons:
# As of this writing (10 May 2014) the Travis build environment is Ubuntu 12.04, apt:
# which needs the following ugly dependency incantations to build RocksDB: sources:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - ubuntu-toolchain-r-test
- sudo apt-get update -qq - llvm-toolchain-precise-3.6
- sudo apt-get install -y -qq gcc-4.9 g++-4.9 zlib1g-dev libbz2-dev libsnappy-dev packages:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 - zlib1g-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50 - libbz2-dev
- wget https://gflags.googlecode.com/files/libgflags0_2.0-1_amd64.deb - libsnappy-dev
- sudo dpkg -i libgflags0_2.0-1_amd64.deb - clang-3.6
- wget https://gflags.googlecode.com/files/libgflags-dev_2.0-1_amd64.deb
- sudo dpkg -i libgflags-dev_2.0-1_amd64.deb env: COMPILER=clang++-3.6
# Lousy hack to disable use and testing of fallocate, which doesn't behave quite # Lousy hack to disable use and testing of fallocate, which doesn't behave quite
# as EnvPosixTest::AllocateTest expects within the Travis OpenVZ environment. # as EnvPosixTest::AllocateTest expects within the Travis OpenVZ environment.
script: OPT=-DTRAVIS V=1 make unity && make clean && OPT=-DTRAVIS V=1 make db_test && ./db_test && OPT=-DTRAVIS V=1 make clean jclean rocksdbjava jtest script: CXX=$COMPILER OPT=-DTRAVIS V=1 make unity && make clean && CXX=$COMPILER OPT=-DTRAVIS V=1 make db_test && ./db_test && CXX=$COMPILER OPT=-DTRAVIS V=1 make clean jclean rocksdbjava jtest
notifications: notifications:
email: false email: false
webhooks:
- https://buildtimetrend.herokuapp.com/travis

Loading…
Cancel
Save