From bb9303fb06860f84fe960ebc8f5873525b0a6883 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Thu, 29 Mar 2018 17:51:49 +0700 Subject: [PATCH] Travis: Cache .hunter directory. Install leveldb on MacOS. --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 36e90d43e..9ccf7b6f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,10 +18,15 @@ matrix: before_install: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update && sudo apt-get install libleveldb-dev; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install leveldb; fi - git submodule update --init --recursive script: - mkdir build && cd build - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-7 ..; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake ..; fi - - cmake --build . --target marketmaker-mainnet \ No newline at end of file + - cmake --build . --target marketmaker-mainnet + +cache: + directories: + - - $HOME/.hunter \ No newline at end of file