From 8cbecd7e99094323708326c8d895f3b668c358bf Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Mon, 29 Feb 2016 10:57:05 +0100 Subject: [PATCH] Use cache for Travis And also avoid Github api limit --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8ed24bb..8cb01d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,10 +17,17 @@ matrix: # faster builds on new travis setup not using sudo sudo: false +# cache vendor dirs +cache: + directories: + - vendor + - $HOME/.composer/cache + install: - composer self-update before_script: + - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; # disable TLS for composer because openssl is disabled for PHP 5.3.3 on travis # see: https://blog.travis-ci.com/upcoming_ubuntu_11_10_migration/ - if [[ $TRAVIS_PHP_VERSION = 5.3.3 ]]; then composer config -g -- disable-tls true; fi;