Skip to content

Commit

Permalink
Enable ccache on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s authored and nikic committed Mar 9, 2017
1 parent 89e4039 commit 85243ee
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ notifications:
on_success: change
on_failure: always

cache:
- apt
cache:
apt: true
ccache: true

env:
global:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 85243ee

Please sign in to comment.