]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Travis: Use ccache
authorteor <teor@torproject.org>
Thu, 9 Aug 2018 05:40:27 +0000 (15:40 +1000)
committerteor <teor@torproject.org>
Thu, 9 Aug 2018 12:18:53 +0000 (22:18 +1000)
Part of ticket 26952.

.travis.yml
changes/ticket26952-ccache [new file with mode: 0644]

index c2db6b78b301057d706c5a1179c9159ba034afbb..424f0d0701e81c7954a4e02c6c316efeca562c84 100644 (file)
@@ -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 (file)
index 0000000..edc115e
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor features (continuous integration):
+    - Use ccache in our Travis CI configuration.
+      Closes ticket 26952.