Skip to content
This repository was archived by the owner on Apr 6, 2019. It is now read-only.

Commit 9de087a

Browse files
Omer KatzCylix
authored andcommitted
[3.5.4] Enabled ccache for faster builds (#87)
* Enabled ccache for faster builds * ccache for mac osx travis config.
1 parent 9597a3b commit 9de087a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ language: cpp
33
compiler:
44
- clang
55
- gcc
6+
7+
cache: ccache
68

79
os:
810
- linux
@@ -26,8 +28,11 @@ before_install:
2628
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install llvm --with-clang; fi
2729

2830
install:
31+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache; fi
32+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
2933
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
3034
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install redis; fi
3135
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then (redis-server&); fi
3236

3337
script: mkdir build && cd build && cmake .. -DBUILD_TESTS=true -DBUILD_EXAMPLES=true && make && ./bin/cpp_redis_tests
38+

0 commit comments

Comments
 (0)