aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2018-08-09 15:40:27 +1000
committerteor <teor@torproject.org>2018-08-09 22:18:53 +1000
commit286a6bc3b8fd2c369583d0d48c09769fed78e39f (patch)
treeedad0ac0895f557f85e71238c1363585d7fc6fce
parent74b3a340df0df1eb803b4b17039725fc42d5a86a (diff)
downloadtor-286a6bc3b8fd2c369583d0d48c09769fed78e39f.tar.gz
tor-286a6bc3b8fd2c369583d0d48c09769fed78e39f.zip
Travis: Use ccache
Part of ticket 26952.
-rw-r--r--.travis.yml6
-rw-r--r--changes/ticket26952-ccache3
2 files changed, 9 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index c2db6b78b3..424f0d0701 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,8 @@
language: c
+cache:
+ ccache: true
+
compiler:
- gcc
- clang
@@ -94,6 +97,9 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade; fi
install:
+ ## If we're on OSX use brew to install ccache (ccache is automatically installed on Linux)
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
## If we're on OSX use brew to install required dependencies (for Linux, see the "apt:" section above)
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libevent; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl; fi
diff --git a/changes/ticket26952-ccache b/changes/ticket26952-ccache
new file mode 100644
index 0000000000..edc115e9de
--- /dev/null
+++ b/changes/ticket26952-ccache
@@ -0,0 +1,3 @@
+ o Minor features (continuous integration):
+ - Use ccache in our Travis CI configuration.
+ Closes ticket 26952.