com php-src: Enable ccache on Travis: .travis.yml

[email protected] (Nikita Popov)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    85243eea350d81e291e9c8d4b349b9f65fb7291d
Author:    c9s <[email protected]>         Wed, 4 May 2016 14:09:41 +0800
Committer: Nikita Popov <[email protected]>      Thu, 9 Mar 2017 15:44:04 +0100
Parents:   89e403982c7ed2b306389b983e00effc0e9e528b
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=85243eea350d81e291e9c8d4b349b9f65fb7291d

Log:
Enable ccache on Travis

Changed paths:
  M  .travis.yml


Diff:
diff --git a/.travis.yml b/.travis.yml
index 0c61bc2..f0f82cc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,8 +28,9 @@ notifications:
       on_success: change
       on_failure: always
 
-cache: 
-    - apt
+cache:
+    apt: true
+    ccache: true
 
 env:
     global:
@@ -45,9 +46,12 @@ env:
       - ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1
 
 before_script:
+    - ccache --version
+    - ccache --zero-stats
+    - export USE_CCACHE=1
     # Compile PHP
     - ./travis/compile.sh
-    # Setup Extensions 
+    # Setup Extensions
     - . ./travis/ext/mysql/setup.sh
     - . ./travis/ext/mysqli/setup.sh
     - . ./travis/ext/pdo_mysql/setup.sh
@@ -57,3 +61,6 @@ before_script:
 # Run PHPs run-tests.php 
 script:
     - ./sapi/cli/php run-tests.php -p `pwd`/sapi/cli/php $(if [ $ENABLE_DEBUG == 1 ]; then echo "-d opcache.enable_cli=1 -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --set-timeout 120
+
+after_success:
+    - ccache --show-stats
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.