From dff72f72df29b51d1c8a64c8c2776761e4d0cfc7 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Sun, 23 Oct 2016 12:49:26 +0100 Subject: [PATCH] Run tests on Travis CI This commit adds configuration for building/installing RocksDB on Travis so the unit tests can be run. Builds now take around 10 minutes. Also, I'm not sure how to configure it for OSX but I'm not sure if this is really important? --- .travis.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e511cbc..071a3b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,29 @@ rust: - 1.1.0 - 1.2.0 -os: - - linux - - osx +dist: trusty +sudo: true + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-5 + - g++-5 + - libgflags-dev + - libsnappy-dev + - zlib1g-dev + - libbz2-dev + +install: + - curl -L https://github.com/facebook/rocksdb/archive/4.13.fb.tar.gz | tar xvz -C $HOME/rocksdb + - sudo INSTALL_PATH=/usr make -C $HOME/rocksdb/rocksdb-4.13.fb install-shared script: - - rustc -Z parse-only src/lib.rs + - cargo test + +cache: + directories: + - $HOME/.cache/ + - $HOME/rocksdb/