summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 4a05ab72d9..47a1a8e49f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,12 +8,17 @@ php:
- 5.3
- hhvm
+## Travis is faster if we do not need sudo
sudo: false
-before_script:
- - composer self-update
- - composer config github-oauth.github.com ${GITHUB_OAUTH_TOKEN}
- - composer update --no-interaction
+## Cache composer bits
+cache:
+ directories:
+ - $HOME/.composer/cache
+
+install:
+ - travis_retry composer config github-oauth.github.com "${GITHUB_OAUTH_TOKEN}"
+ - travis_retry composer update --prefer-dist --no-interaction
script:
- phpunit --coverage-clover tests/clover.xml