8000 cache ccache · caogenwang/opencv-python@200f0da · GitHub
[go: up one dir, main page]

Skip to content

Commit 200f0da

Browse files
committed
cache ccache
1 parent c148de2 commit 200f0da

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ cache:
3333
- /usr/local/Homebrew/
3434
# used in OSX custom build script dealing with local bottle caching
3535
- $HOME/local_bottle_metadata
36+
# `cache: ccache: true` has no effect if `language:` is not `c` or `cpp`
37+
- $HOME/.ccache
3638

3739
matrix:
3840
fast_finish: true

config.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ function pre_build {
5656
# see https://docs.brew.sh/Manpage , "info formula" section
5757
export HOMEBREW_NO_GITHUB_API=1
5858

59+
# https://docs.travis-ci.com/user/caching/#ccache-cache
60+
# No need to allow rc 1 -- if this triggers a timeout,
61+
# something is clearly wrong
62+
brew_install_and_cache_within_time_limit ccache
63+
export PATH="/usr/local/opt/ccache/libexec:$PATH"
64+
5965
echo 'Installing QT4'
6066
brew tap | grep -qxF cartr/qt4 || brew tap -v cartr/qt4
6167
brew tap --list-pinned | grep -qxF cartr/qt4 || brew tap-pin -v cartr/qt4

0 commit comments

Comments
 (0)
0